Esempio n. 1
0
        public void ReturnCollectionOfMovieNames_WhenTheyExist()
        {
            //Arrange
            unitOfWork.Setup(x => x.Movies).Returns(movieRepoMock.Object);
            movieRepoMock.Setup(repo => repo.All()).Returns(predifinedListOfMovieNames.AsQueryable());

            //Act
            var command = new MovieServices(unitOfWork.Object);
            var result  = command.GetMovieNamesByCityIDGenreID(0, 0);

            //Assert
            Assert.AreEqual(testMovieName, result.First());
        }