internal void PrzykladoweReaders() { model.AddReader(1, "Marcin", "Wolkowicz"); model.AddReader(2, "Iwona", "Wolkowicz"); model.AddReader(3, "Franek", "Wolkowicz"); model.AddReader(4, "Łucja", "Wolkowicz"); }
public void Test_RemoveReader() { LibraryModel model = new LibraryModel(); Reader testreader = model.AddReader(1, "Marcin", "Wołkowicz"); model.RemoveReader(1); Assert.AreEqual(0, model.ListReaders.Count); }
public void Test_AddingReader() { LibraryModel model = new LibraryModel(); Reader testreader = model.AddReader(1, "Iwona", "Wołkowicz"); Assert.AreEqual(1, model.ListReaders.Count); Assert.AreSame(testreader, model.ListReaders[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); }