Beispiel #1
0
        public void MockCanAddDvd()
        {
            var repo = new DvdRepositoryMock();

            string title        = "A new movie";
            int    releaseYear  = 2000;
            string directorName = "John";
            string ratingName   = "G";
            string notes        = "A note";

            repo.SaveNew(title, releaseYear, directorName, ratingName, notes);
            var test = repo.GetAllDvd();

            Assert.AreEqual(3, test.Count());
        }