13 instantiations of TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (13)
Hedging\HedgingTests.cs (1)
53
_ = httpClient.AddHttpMessageHandler(() => new
TestHandlerStub
(InnerHandlerFunction));
Resilience\HttpClientBuilderExtensionsTests.BySelector.cs (1)
129
_builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (5)
69
.ConfigurePrimaryHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
121
.ConfigurePrimaryHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.InternalServerError))
158
_builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.InternalServerError));
213
builder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
256
clientBuilder.AddHttpMessageHandler(() => new
TestHandlerStub
(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
242
_builder.AddHttpMessageHandler(() => new
TestHandlerStub
((r, _) =>
Resilience\ResilienceHandlerTest.cs (5)
39
handler.InnerHandler = new
TestHandlerStub
(HttpStatusCode.OK);
75
handler.InnerHandler = new
TestHandlerStub
(HttpStatusCode.OK);
107
handler.InnerHandler = new
TestHandlerStub
((r, _) =>
133
handler.InnerHandler = new
TestHandlerStub
((_, cancellationToken) =>
157
handler.InnerHandler = new
TestHandlerStub
((_, _) => throw new InvalidOperationException());