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
?