Can a GraphQLHttpClient be instantiated against an in memory server

Can a GraphQLHttpClient be instantiated against an in memory server


0

Hoping to run integration tests against an in memory server. If I were to create the in-memory server using WebApplicationFactory<Program>, how would I instantiate a GraphQLHttpClient against it? The constructors for GraphQLHttpClient expect an endpoint.

I know I could run integration tests against an in memory server in dotnet core 7.0 using an HttpClient and plain json using the approach described in the docs.

I would though, like to use a more GraphQL centric approach.

I would I set up the integration tests to run purely in memory using the WebApplicationFactory?


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *