public void Should_Filter_Movies_By_Genre_And_Title() { // Arrange List <Movie> movies = new List <Movie>(); movies.Add(GetTerminatorMovie()); movies.Add(GetMillionDollarBabyMovie()); Mock <IMoviesRepository> mockMovieRepository = new Mock <IMoviesRepository>(MockBehavior.Loose); mockMovieRepository.Setup(x => x.GetAllMovies()).Returns(movies.AsQueryable()); MoviesService systemUnderTest = new MoviesService(mockMovieRepository.Object); int zeroMoviesExpected = 0; // Act var returnValue = systemUnderTest.GetMoviesFiltered(GENRE_DRAMA, GetTerminatorMovie().Title); // Assert Assert.Equal(returnValue.Count(), zeroMoviesExpected); }