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