public void AddAndRemoveCatalogTest() { repository.AddCatalog("Dune", "Frank Herbert"); repository.AddCatalog("Krol", "Szczepan Twardoch"); Assert.AreEqual(repository.GetCatalogsNumber(), 2); repository.RemoveCatalog(repository.GetCatalog("Dune", "Frank Herbert")); repository.RemoveCatalog(repository.GetCatalog("Krol", "Szczepan Twardoch")); Assert.AreEqual(repository.GetCatalogsNumber(), 0); }
public void AddCatalog(string title, string author) => _repository.AddCatalog(title, author);