-
-
Save jacobduijzer/af6631ef2f1e0e86b26f695b4d16ba12 to your computer and use it in GitHub Desktop.
GraphQL Specifications Reqnroll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [When(@"the customer request the full list of books")] | |
| public async Task WhenTheCustomerRequestTheFullListOfBooks() | |
| { | |
| var bookData = await _client.AllBooks.ExecuteAsync(); | |
| var books = bookData.Data!.Books.Select(b => new Book(b.Id, b.Title, b.Author, b.Isbn)); | |
| scenarioContext.Add(BookData, bookData); | |
| scenarioContext.Add(Books, books); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment