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); }
public void Index_ReturnsIndexViewModelInViewResult() { var ludoController = new LudoController(new LudoGameAPIProccessor(), new PlayerFormExtractor(), ILogger<LudoController>) }
static void Main(string[] args) { LudoController.NewGame(); Console.WriteLine("Hello World!"); }