示例#1
0
 public void AddRentBook()
 {
     model.BorrowBook(IdRent, IdReaderRent);
     this.OnPropertyChanged(nameof(Books));
     this.OdswiezBooks();
     this.OdswiezRentedBooks();
 }
示例#2
0
        public void Test_DropOffBook()
        {
            LibraryModel model      = new LibraryModel();
            Book         testbook   = model.AddBook(1, "Pan Tadeusz", "Adam Mickiewicz");
            Reader       testreader = model.AddReader(1, "Marcin", "Wołkowicz");

            model.BorrowBook(1, 1);
            model.DropOffBook(1);
            Assert.AreEqual(0, testreader.Books.Count);
        }