9 references to TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (9)
Resilience\HttpClientBuilderExtensionsTests.BySelector.cs (1)
129
_builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (6)
70
.ConfigurePrimaryHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
122
.ConfigurePrimaryHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.InternalServerError))
159
_builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.InternalServerError));
214
builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
257
clientBuilder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
346
builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
Resilience\ResilienceHandlerTest.cs (2)
39
handler.InnerHandler = new
TestHandlerStub
(HttpStatusCode.OK);
75
handler.InnerHandler = new
TestHandlerStub
(HttpStatusCode.OK);