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)); 213builder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK)); 256clientBuilder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
242_builder.AddHttpMessageHandler(() => new TestHandlerStub((r, _) =>
Resilience\ResilienceHandlerTest.cs (5)
39handler.InnerHandler = new TestHandlerStub(HttpStatusCode.OK); 75handler.InnerHandler = new TestHandlerStub(HttpStatusCode.OK); 107handler.InnerHandler = new TestHandlerStub((r, _) => 133handler.InnerHandler = new TestHandlerStub((_, cancellationToken) => 157handler.InnerHandler = new TestHandlerStub((_, _) => throw new InvalidOperationException());