6 references to TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (6)
Hedging\HedgingTests.cs (1)
53
_ = httpClient.AddHttpMessageHandler(() => new
TestHandlerStub
(InnerHandlerFunction));
Helpers\TestHandlerStub.cs (1)
17
:
this
((_, _) => Task.FromResult(new HttpResponseMessage(statusCode)))
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
242
_builder.AddHttpMessageHandler(() => new
TestHandlerStub
((r, _) =>
Resilience\ResilienceHandlerTest.cs (3)
107
handler.InnerHandler = new
TestHandlerStub
((r, _) =>
133
handler.InnerHandler = new
TestHandlerStub
((_, cancellationToken) =>
157
handler.InnerHandler = new
TestHandlerStub
((_, _) => throw new InvalidOperationException());