Ejemplo n.º 1
0
        public void GetDvdByTitle()
        {
            var repo = new DvdRepositoryADO();

            List <Dvd> dvds = repo.GetDvdsByTitle("East West Bowl");

            Assert.AreEqual(2, dvds[0].DvdId);
            Assert.AreEqual("Hingle McCringleberry", dvds[0].DirectorName);
        }
Ejemplo n.º 2
0
        public void ADOCanLoadDvdsByTitle()
        {
            DvdRepositoryADO repo = new DvdRepositoryADO();

            var dvds = repo.GetDvdsByTitle("Office Space");

            Assert.AreEqual(1, dvds.Count);
            Assert.AreEqual("Office Space", dvds[0].Title);
            Assert.AreEqual("Director A", dvds[0].Director);
            Assert.AreEqual("R", dvds[0].Rating);
            Assert.AreEqual(1999, dvds[0].ReleaseYear);
            Assert.AreEqual("funny movie", dvds[0].Notes);
        }