Example #1
0
            public async Task ReturnsNullIfNotFound()
            {
                // Hopefully no one will write a book with this title in the future...
                var book = await BooksEndpoint.GetByTitle("asasdasd123123123");

                Assert.Null(book);
            }
Example #2
0
            public async Task ReturnsABook()
            {
                var title  = "The Way of Kings";
                var bookId = 7235533;
                var isbn   = "0765326353";
                var book   = await BooksEndpoint.GetByTitle(title);

                Assert.NotNull(book);
                Assert.Equal(book.Id, bookId);
                Assert.Equal(book.Isbn, isbn);
            }