Esempio n. 1
0
        public void AddPatron_AddsPatronToCopy_True()
        {
            Patron testPatron = new Patron("Penny Flowers");

            testPatron.Save();
            Copy newCopy = new Copy(1, 5, DateTime.Today);

            newCopy.Save();
            newCopy.AddPatron(testPatron);
            List <Patron> expected = new List <Patron> {
                testPatron
            };
            List <Patron> result = newCopy.GetPatrons();

            Assert.Equal(expected, result);
        }