3 instantiations of RangeRouteConstraint
Microsoft.AspNetCore.Routing.Tests (3)
Constraints\RangeRouteConstraintTests.cs (2)
23var constraint = new RangeRouteConstraint(min, max); 41() => new RangeRouteConstraint(3, 2),
RouteTest.cs (1)
309constraints.Add("id", new RangeRouteConstraint(1, 20));
10 references to RangeRouteConstraint
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
232else 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)
124AddConstraint<RangeRouteConstraint>(defaults, "range");
Microsoft.AspNetCore.Routing.Tests (7)
Constraints\RangeRouteConstraintTests.cs (1)
23var constraint = new RangeRouteConstraint(min, max);
DefaultInlineConstraintResolverTest.cs (3)
249Assert.IsType<RangeRouteConstraint>(constraint); 250var rangeConstraint = (RangeRouteConstraint)constraint;
DefaultParameterPolicyFactoryTest.cs (2)
172var constraint = Assert.IsType<RangeRouteConstraint>(parameterPolicy);
RouteTest.cs (1)
327Assert.Single(compositeConstraint.Constraints, c => c is RangeRouteConstraint);