17 references to TestRateLimiter
Microsoft.AspNetCore.RateLimiting.Tests (17)
RateLimitingApplicationBuilderExtensionsTests.cs (2)
44
options.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
50
options.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
RateLimitingMetricsTests.cs (3)
31
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
71
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(true));
130
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(true));
RateLimitingMiddlewareTests.cs (11)
65
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(true));
90
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
115
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
144
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
192
return new
TestRateLimiter
(false);
293
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
325
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(true));
357
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
477
return new
TestRateLimiter
(false);
484
return new
TestRateLimiter
(true);
524
options.Value.GlobalLimiter = new TestPartitionedRateLimiter<HttpContext>(new
TestRateLimiter
(false));
TestRateLimiterPolicy.cs (1)
32
return new
TestRateLimiter
(_alwaysAccept);