Ejemplo n.º 1
0
        public void DataRepositoryAddEventTest()
        {
            Assert.AreEqual(3, repository.GetEventsNumber());

            repository.AddEvent(new Data.RentEvent(4, new Data.Client(4, "Monika", "Roksa", 23), date_1, new Data.Book(4, "Maly Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1)));
            repository.AddEvent(new Data.RentEvent(5, new Data.Client(5, "Anna", "Przystanska", 34), date_3, new Data.Book(5, "Maly Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1)));

            Assert.AreEqual(5, repository.GetEventsNumber());
        }
Ejemplo n.º 2
0
 public int GetEventsNumber()
 {
     return(repository.GetEventsNumber());
 }