コード例 #1
0
        public void CanSearchByRating()
        {
            var repo = new DvdRepositoryADO();
            var dvds = repo.GetBySearch("rating", "R");

            Assert.AreEqual(6, dvds.Count());
        }
コード例 #2
0
        public void CanSearchByDirector()
        {
            var repo = new DvdRepositoryADO();
            var dvds = repo.GetBySearch("director", "Peter Jackson");

            Assert.AreEqual(2, dvds.Count());
        }
コード例 #3
0
        public void CanSearchByTitle()
        {
            var repo = new DvdRepositoryADO();
            var dvds = repo.GetBySearch("title", "Fight Club");

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