public void Initialize() { classificationService = new StubClassificationService(); classificationService.AddBook(Classification1, "T1", "A1", "2001"); classificationService.AddBook(Classification2, "T2", "A2", "2002"); scanner = new ScanStation(Branch1Id, classificationService); holdingService = new HoldingService(); holdingService.DeleteAllHoldings(); patronService = new PatronService(); PatronService.DeleteAllPatrons(); patronId1 = patronService.Add("Joe"); patronId2 = patronService.Add("Jane"); var holding = scanner.AddNewMaterial(Isbn1); Assert.That(holding.Barcode, Is.EqualTo(barcode1)); }
public void AddSecondNewBookWithSameIsbn() { var holding = scanner.AddNewMaterial(Isbn1); Assert.That(holding.Barcode, Is.EqualTo(Classification1 + ":2")); }