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

            books.ShouldNotBeNull();
            books.Any().ShouldBeTrue();
            books.Where(b => string.IsNullOrEmpty(b.Title)).Any().ShouldBeFalse();
        }
Ejemplo n.º 2
0
        public void Can_Fetch_All_Books()
        {
            var books = BooksApi.GetAll();

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