public void TestCreateReader() { Reader reader = new Reader(); reader.reader_firstName = "Lidia"; reader.reader_surname = "Opala"; Assert.IsTrue(serv.CreateReader(reader)); }
public void TestGetEvent() { Book book = new Book(); book.title = "The Amulet of Samarkand"; book.author = "Jonathan Stroud"; book.yearPublished = 2003; book.publisher = "Doubleday"; Reader reader = new Reader(); reader.reader_firstName = "Lidia"; reader.reader_surname = "Opala"; reserv.CreateReader(reader); serv.BorrowBook(reader, book); Assert.IsNotNull(serv.GetEventByUserData("Lidia", "Opala")); }