Beispiel #1
0
        public void EFInvalidDvdIDReturnsNull()
        {
            var repo = new DvdRepoEF();
            var dvd  = repo.GetByID(20000000);

            Assert.IsNull(dvd);
        }
Beispiel #2
0
        public void EFCanGetDvdByID()
        {
            var repo = new DvdRepoEF();
            var dvd  = repo.GetByID(6);

            Assert.AreEqual(6, dvd.DvdID);
            Assert.AreEqual("Pumpkinhead 2", dvd.Title);
            Assert.AreEqual(1993, dvd.Year);
            Assert.AreEqual("Jeff Burr", dvd.DirectorName);
            Assert.AreEqual("R", dvd.RatingValue);
            Assert.AreEqual(null, dvd.Note);
            Assert.AreEqual(1, dvd.DirectorID);
            Assert.AreEqual(4, dvd.RatingID);
            Assert.AreEqual(5, dvd.ReleaseID);
        }