public void CanSearchByRating() { var repo = new DvdRepositoryMock(); var dvds = repo.GetBySearch("rating", "R"); Assert.AreEqual(6, dvds.Count()); }
public void CanSearchByDirector() { var repo = new DvdRepositoryMock(); var dvds = repo.GetBySearch("director", "Peter Jackson"); Assert.AreEqual(2, dvds.Count()); }
public void CanSearchByTitle() { var repo = new DvdRepositoryMock(); var dvds = repo.GetBySearch("title", "Fight Club"); Assert.AreEqual(1, dvds.Count()); }