コード例 #1
0
        public void CanGetDvdsByTitle()
        {
            var repo = new DvdRepositoryADO();
            var dvds = repo.GetDvdByTitle("The Lion King");

            Assert.IsNotNull(dvds);
            Assert.AreEqual(1, dvds.Count());
            Assert.AreEqual("The Lion King", dvds[0].Title);
            Assert.AreEqual(1992, dvds[0].ReleaseYear);
            Assert.AreEqual("PG", dvds[0].Rating);
        }