public void DataRepositoryEditBookTest() { repository.EditBook(new Data.Book(1, "Duzy Krol", "Szczepan Twardoch", 350, Data.BookGenre.Horror, new DateTime(2016, 12, 24))); Assert.AreEqual(1, repository.GetBook(1).Id); Assert.AreEqual("Duzy Krol", repository.GetBook(1).Title); Assert.AreEqual("Szczepan Twardoch", repository.GetBook(1).Author); Assert.AreEqual(350, repository.GetBook(1).Pages); Assert.AreEqual(Data.BookGenre.Horror, repository.GetBook(1).Genre); Assert.AreEqual(new DateTime(2016, 12, 24), repository.GetBook(1).Date_of_publication); }
public void EditBook(Data.Book book) { repository.EditBook(book); }