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)); 214builder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK)); 257clientBuilder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK)); 346builder.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());
1 reference to TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
354Assert.Equal(typeof(TestHandlerStub), handlers.First().GetType());