Skip to content

Instantly share code, notes, and snippets.

@jacobduijzer
Created January 20, 2025 09:57
Show Gist options
  • Select an option

  • Save jacobduijzer/af6631ef2f1e0e86b26f695b4d16ba12 to your computer and use it in GitHub Desktop.

Select an option

Save jacobduijzer/af6631ef2f1e0e86b26f695b4d16ba12 to your computer and use it in GitHub Desktop.
GraphQL Specifications Reqnroll
[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