14 instantiations of TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (14)
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 (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\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());
1 reference to TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
354
Assert.Equal(typeof(
TestHandlerStub
), handlers.First().GetType());