First version of retrieving a gamesession from the db
This commit is contained in:
@@ -9,14 +9,14 @@ void main() {
|
||||
|
||||
setUp(() {
|
||||
session = GameSession(
|
||||
id: '1',
|
||||
createdAt: testDate,
|
||||
gameTitle: testTitle,
|
||||
players: testPlayers,
|
||||
pointLimit: 100,
|
||||
caboPenalty: 5,
|
||||
isPointsLimitEnabled: true,
|
||||
);
|
||||
id: '1',
|
||||
createdAt: testDate,
|
||||
gameTitle: testTitle,
|
||||
players: testPlayers,
|
||||
pointLimit: 100,
|
||||
caboPenalty: 5,
|
||||
isPointsLimitEnabled: true,
|
||||
isGameFinished: false);
|
||||
});
|
||||
|
||||
group('Initialization & JSON', () {
|
||||
|
||||
@@ -11,6 +11,8 @@ void main() {
|
||||
|
||||
setUp(() {
|
||||
round = Round(
|
||||
roundId: 'testRoundId',
|
||||
gameId: 'testGameId',
|
||||
roundNum: testRoundNum,
|
||||
caboPlayerIndex: testCaboPlayerIndex,
|
||||
kamikazePlayerIndex: testKamikazePlayerIndex,
|
||||
@@ -30,6 +32,8 @@ void main() {
|
||||
|
||||
test('Constructor with null kamikazePlayerIndex', () {
|
||||
final roundWithoutKamikaze = Round(
|
||||
roundId: 'testRoundId',
|
||||
gameId: 'testGameId',
|
||||
roundNum: testRoundNum,
|
||||
caboPlayerIndex: testCaboPlayerIndex,
|
||||
kamikazePlayerIndex: null,
|
||||
@@ -98,6 +102,8 @@ void main() {
|
||||
|
||||
test('toString() with null kamikazePlayerIndex', () {
|
||||
final roundWithoutKamikaze = Round(
|
||||
roundId: 'testRoundId',
|
||||
gameId: 'testGameId',
|
||||
roundNum: testRoundNum,
|
||||
caboPlayerIndex: testCaboPlayerIndex,
|
||||
kamikazePlayerIndex: null,
|
||||
|
||||
Reference in New Issue
Block a user