public void DataRepositoryAddBookTest() { Assert.AreEqual(3, repository.GetBooksNumber()); repository.AddBook(new Data.Book(4, "Nie ma", "Mariusz Szczygiel", 332, Data.BookGenre.Personal, new DateTime(2018, 6, 12))); repository.AddBook(new Data.Book(5, "Krolestwo", "Szczepan Twardoch", 380, Data.BookGenre.Horror, new DateTime(2017, 11, 20))); repository.AddBook(new Data.Book(6, "Krol", "Szczepan Twardoch", 350, Data.BookGenre.Horror, new DateTime(2016, 12, 24))); Assert.AreEqual(6, repository.GetBooksNumber()); }
public int GetBooksNumber() { return(repository.GetBooksNumber()); }