public async Task ReadListOfGamesAsync()
        {
            // Arrange

            RestClient    client  = new RestClient();
            PlayerCounter counter = new PlayerCounter();

            var controller = new LudoController(client, counter);


            // Act

            IActionResult result = await controller.ListGames();

            // Assert

            Assert.NotNull(result);
            Assert.IsType <ViewResult>(result);
        }
 public UnitTests()
 {
     _gameContainer  = new GameContainerMock();
     _ludoController = new LudoController(_gameContainer);
 }
Example #3
0
     public void Index_ReturnsIndexViewModelInViewResult()
     {
         var ludoController = new LudoController(new LudoGameAPIProccessor(), new PlayerFormExtractor(), ILogger<LudoController>)
 }
Example #4
0
 static void Main(string[] args)
 {
     LudoController.NewGame();
     Console.WriteLine("Hello World!");
 }