Пример #1
0
        public void CanSearchByRating()
        {
            var repo = new DvdRepositoryMock();
            var dvds = repo.GetBySearch("rating", "R");

            Assert.AreEqual(6, dvds.Count());
        }
Пример #2
0
        public void CanSearchByDirector()
        {
            var repo = new DvdRepositoryMock();
            var dvds = repo.GetBySearch("director", "Peter Jackson");

            Assert.AreEqual(2, dvds.Count());
        }
Пример #3
0
        public void CanSearchByTitle()
        {
            var repo = new DvdRepositoryMock();
            var dvds = repo.GetBySearch("title", "Fight Club");

            Assert.AreEqual(1, dvds.Count());
        }