Esempio n. 1
0
        public void RetrieveHoldings()
        {
            service.Add(Book1Classification, Branch1Id);
            service.Add(Book2Classification, Branch1Id);

            var holdings = service.RetrieveAll();

            Assert.That(holdings, Has.Count(2));
            Assert.That(CollectionUtil.Find(holdings, MatchBarcode, book1Barcode), Is.Not.Null);
            Assert.That(CollectionUtil.Find(holdings, MatchBarcode, book2Barcode), Is.Not.Null);
        }
        public void RetrieveHoldings()
        {
            service.Add(Book1Classification, Branch1Id);
            service.Add(Book2Classification, Branch1Id);

            var holdings = service.RetrieveAll();

            Assert.That(
                holdings.Select(h => h.Barcode),
                Is.EqualTo(new string[] { book1Barcode, book2Barcode }));
        }