3 instantiations of RangeRouteConstraint
Microsoft.AspNetCore.Routing.Tests (3)
Constraints\RangeRouteConstraintTests.cs (2)
23
var constraint = new
RangeRouteConstraint
(min, max);
41
() => new
RangeRouteConstraint
(3, 2),
RouteTest.cs (1)
309
constraints.Add("id", new
RangeRouteConstraint
(1, 20));
10 references to RangeRouteConstraint
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
232
else if (constraint is
RangeRouteConstraint
rangeRouteConstraint)
Microsoft.AspNetCore.Routing (2)
Constraints\RangeRouteConstraint.cs (1)
24
/// Initializes a new instance of the <see cref="
RangeRouteConstraint
" /> class.
RouteOptions.cs (1)
124
AddConstraint<
RangeRouteConstraint
>(defaults, "range");
Microsoft.AspNetCore.Routing.Tests (7)
Constraints\RangeRouteConstraintTests.cs (1)
23
var
constraint = new RangeRouteConstraint(min, max);
DefaultInlineConstraintResolverTest.cs (3)
249
Assert.IsType<
RangeRouteConstraint
>(constraint);
250
var
rangeConstraint = (
RangeRouteConstraint
)constraint;
DefaultParameterPolicyFactoryTest.cs (2)
172
var
constraint = Assert.IsType<
RangeRouteConstraint
>(parameterPolicy);
RouteTest.cs (1)
327
Assert.Single(compositeConstraint.Constraints, c => c is
RangeRouteConstraint
);