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)
107handler.InnerHandler = new TestHandlerStub((r, _) => 133handler.InnerHandler = new TestHandlerStub((_, cancellationToken) => 157handler.InnerHandler = new TestHandlerStub((_, _) => throw new InvalidOperationException());