Example #1
0
        public void DPCanGetDvdById(int id, string expectedTitle)
        {
            var repo   = new DPRepository();
            var actual = repo.GetDvdById(id);

            Assert.AreEqual(expectedTitle, actual.Title);
        }
Example #2
0
        public void DPNotFoundDvdReturnsNull()
        {
            var repo = new DPRepository();
            var dvd  = repo.GetDvdById(9999);

            Assert.IsNull(dvd);
        }