Пример #1
0
        public void GetGenresForGame_should_return_list_of_genres_for_game()
        {
            //Arrange
            _gameService.Setup(x => x.Get(It.IsAny <int>())).Returns(new GameDTO()
            {
                Genres = new List <string>()
                {
                    It.IsAny <string>()
                }
            });

            //Act
            var actionResult = _gamesController.GetGenresForGame(It.IsAny <int>());

            //Assert
            Assert.AreEqual(1, actionResult.Count());
        }