public void DataRepositoryCheckIfRepairdTest() { repository.AddBook(new Data.Book(5, "Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1)); repository.ReportDamaged(new Data.Book(5, "Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1), new Data.Client(1, "Bartlomiej", "Wlodarski", 20), new DateTime(2018, 10, 20)); Assert.IsTrue(repository.CheckIfDamaged(new Data.Book(5, "Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1))); repository.ReportRepaired(new Data.Book(5, "Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1), new Data.Client(1, "Bartlomiej", "Wlodarski", 20), new DateTime(2018, 10, 20)); Assert.IsTrue(repository.CheckAvaiability(new Data.Book(5, "Ksiaze", "Saint-Exupery", 120, Data.BookGenre.Childrens, date_1))); }
public void ReportRepaired(Data.Book book, Data.Client client, DateTime date) { repository.ReportRepaired(book, client, date); }