Esempio n. 1
0
        public void CanLoadADODvdDetails()
        {
            var repo = new DvdRepositoryADO();
            var dvd  = repo.GetDetails(1);

            Assert.IsNotNull(dvd);

            Assert.AreEqual(1, dvd.DvdId);
            Assert.AreEqual("Manhattan", dvd.Title);
            Assert.AreEqual(1979, dvd.ReleaseYear);
            Assert.AreEqual("Allen", dvd.DirectorName);
            Assert.AreEqual("Allen", dvd.DirectorName);
            Assert.AreEqual("PG-13", dvd.RatingName);
            Assert.AreEqual("A Woody Allen classic", dvd.Notes);
        }