3 instantiations of MinLengthRouteConstraint
Microsoft.AspNetCore.Routing.Tests (3)
Constraints\MinLengthRouteConstraintTests.cs (2)
19var constraint = new MinLengthRouteConstraint(min); 36() => new MinLengthRouteConstraint(-1),
RouteConstraintBuilderTest.cs (1)
134var minLenConstraint = new MinLengthRouteConstraint(10);
9 references to MinLengthRouteConstraint
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1421constraint => Assert.IsType<MinLengthRouteConstraint>(constraint),
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
224else if (constraint is MinLengthRouteConstraint minLengthRouteConstraint)
Microsoft.AspNetCore.Routing (2)
Constraints\MinLengthRouteConstraint.cs (1)
24/// Initializes a new instance of the <see cref="MinLengthRouteConstraint" /> class.
RouteOptions.cs (1)
117AddConstraint<MinLengthRouteConstraint>(defaults, "minlength");
Microsoft.AspNetCore.Routing.Tests (5)
Constraints\MinLengthRouteConstraintTests.cs (1)
19var constraint = new MinLengthRouteConstraint(min);
DefaultInlineConstraintResolverTest.cs (2)
238Assert.IsType<MinLengthRouteConstraint>(constraint); 239Assert.Equal(3, ((MinLengthRouteConstraint)constraint).MinLength);
RouteConstraintBuilderTest.cs (2)
134var minLenConstraint = new MinLengthRouteConstraint(10); 145Assert.Single(compositeConstraint.Constraints, c => c is MinLengthRouteConstraint);