1 write to _testObject
Microsoft.Extensions.Http.Resilience.Tests (1)
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (1)
33
_testObject
= new HttpCircuitBreakerStrategyOptions();
10 references to _testObject
Microsoft.Extensions.Http.Resilience.Tests (10)
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (10)
40
_testObject
.BreakDuration.Should().Be(TimeSpan.FromSeconds(5));
41
_testObject
.FailureRatio.Should().Be(0.1);
42
_testObject
.SamplingDuration.Should().Be(TimeSpan.FromSeconds(30));
43
_testObject
.MinimumThroughput.Should().Be(100);
44
_testObject
.ShouldHandle.Should().NotBeNull();
45
_testObject
.OnClosed.Should().BeNull();
46
_testObject
.OnOpened.Should().BeNull();
47
_testObject
.OnHalfOpened.Should().BeNull();
60
var isTransientFailure = await
_testObject
.ShouldHandle(CreateArgs(response));
68
var shouldHandle = await
_testObject
.ShouldHandle(CreateArgs(exception));