10 references to Randomizer
Microsoft.Extensions.Http.Resilience.Tests (10)
Routing\OrderedRoutingStrategyTest.cs (4)
22
Randomizer
.Setup(r => r.NextDouble(10)).Returns(1);
23
Randomizer
.Setup(r => r.NextDouble(20)).Returns(2);
24
Randomizer
.Setup(r => r.NextDouble(30)).Returns(3);
28
Randomizer
.VerifyAll();
Routing\RoutingStrategyTest.cs (6)
27
Builder.Services.TryAddSingleton(
Randomizer
.Object);
82
Builder.Services.TryAddSingleton(
Randomizer
.Object);
101
Builder.Services.TryAddSingleton(
Randomizer
.Object);
137
Builder.Services.TryAddSingleton(
Randomizer
.Object);
179
protected void SetupRandomizer(double result) =>
Randomizer
.Setup(r => r.NextDouble(It.IsAny<double>())).Returns(result);
181
protected void SetupRandomizer(int result) =>
Randomizer
.Setup(r => r.NextInt(It.IsAny<int>())).Returns(result);