NV
Size: a a a
NV
IC
NV
NV
NV
NV
NV
AB
AB
IC
services.AddHttpClient<IService,Service>().ConfigurePrimaryHttpMessageHandler(p=>new MockHttpMessageHandler())
NV
IC
var mockHttp = new MockHttpMessageHandler();
// Setup a respond for the user api (including a wildcard in the URL)
mockHttp.When("http://localhost/api/user/*")
.Respond("application/json", "{'name' : 'Test McGee'}"); // Respond with JSON
IC
IC
DP
IC
W
E