public void Can_Fetch_All_Books()
        {
            var books = BooksApi.GetAll();

            books.ShouldNotBeNull();
            books.Any().ShouldBeTrue();
            books.Where(b => string.IsNullOrEmpty(b.Title)).Any().ShouldBeFalse();
        }
Пример #2
0
        public void Can_Fetch_All_Books()
        {
            var books = BooksApi.GetAll();

            BooksValidator.AreValid(books).Valid.ShouldBeTrue();
        }