public void When_Using_GetHigestBoardId_Expecting_ShouldReturn_MaxId() { // Arange int expected = 2; // Act int result = ludoDbAccess.GetHighestBoardId(); // Assert Assert.Equal(expected, result); }
// Loading The Latest Game public void ContinueGame() { LudoDbAccess ludoDbAccess = new LudoDbAccess(); UserInterface userInterface = new UserInterface(); // GET latest game from board id var gameBoard = ludoDbAccess.GetHighestBoardId(); if (gameBoard == 0) { Console.WriteLine("No game found.. " + "\nCreate a new game.."); Thread.Sleep(2000); userInterface.MainMenu(); } LoadAnyGame(gameBoard); }