9 references to TestHandlerStub
Microsoft.Extensions.Http.Resilience.Tests (9)
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\ResilienceHandlerTest.cs (2)
39handler.InnerHandler = new TestHandlerStub(HttpStatusCode.OK); 75handler.InnerHandler = new TestHandlerStub(HttpStatusCode.OK);