Пример #1
0
        public void CheckSearchBookByAuthor()
        {
            var seacher       = Searcher.GetBookByAuthor;
            var booksbyAuthor = Searcher.Search(seacher, TestLibrary.SearchByAuthor, DataToTest.OnlyBook());

            Assert.IsTrue(booksbyAuthor.Count == TestLibrary.CountBookByAuthor);
        }
Пример #2
0
        public void CheckGroupingBookByPublisher()
        {
            var seacher = Searcher.GroupBooksByPublisher;
            var books   = Searcher.Search(seacher, PublisherForGrouping, DataToTest.OnlyBook());

            Assert.IsTrue(TestLibrary.CountOfGroup(books) == TestLibrary.CountOfGroupForPublisher);
        }