public void GetAllMoviesEvenIfThereAreDeleted() { //Arrange var guid = Guid.NewGuid(); var testMovie = new Movies() { Id = Guid.NewGuid(), IsDeleted = true }; var testMovie2 = new Movies() { Id = Guid.NewGuid(), IsDeleted = false }; var moviesToReturn = new List <Movies>(); moviesToReturn.Add(testMovie); moviesToReturn.Add(testMovie2); movies.Setup(x => x.All()).Returns(moviesToReturn.AsQueryable()); var sut = new MoviesService(movies.Object, genresRepo.Object, commentsRepo.Object, userRepo.Object, likesRepo.Object, dislikesRepo.Object, saver.Object); //Act var result = sut.GetAllAndDeleted(); //Assert movies.Verify(x => x.All(), Times.Once()); Assert.IsTrue(result.Select(x => x.Id).Contains(testMovie.Id)); Assert.IsTrue(result.Select(x => x.Id).Contains(testMovie2.Id)); }