4 instantiations of MaxLengthRouteConstraint
Microsoft.AspNetCore.Routing.Tests (4)
Constraints\MaxLengthRouteConstraintTests.cs (2)
19var constraint = new MaxLengthRouteConstraint(min); 36() => new MaxLengthRouteConstraint(-1),
DefaultLinkGeneratorProcessTemplateTest.cs (1)
1104var constraint = new MaxLengthRouteConstraint(20);
RouteTest.cs (1)
1210var constraint = new MaxLengthRouteConstraint(20);
9 references to MaxLengthRouteConstraint
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1423constraint => Assert.IsType<MaxLengthRouteConstraint>(constraint));
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
228else if (constraint is MaxLengthRouteConstraint maxLengthRouteConstraint)
Microsoft.AspNetCore.Routing (2)
Constraints\MaxLengthRouteConstraint.cs (1)
24/// Initializes a new instance of the <see cref="MaxLengthRouteConstraint" /> class.
RouteOptions.cs (1)
118AddConstraint<MaxLengthRouteConstraint>(defaults, "maxlength");
Microsoft.AspNetCore.Routing.Tests (5)
Constraints\MaxLengthRouteConstraintTests.cs (1)
19var constraint = new MaxLengthRouteConstraint(min);
DefaultInlineConstraintResolverTest.cs (2)
216Assert.IsType<MaxLengthRouteConstraint>(constraint); 217Assert.Equal(10, ((MaxLengthRouteConstraint)constraint).MaxLength);
DefaultLinkGeneratorProcessTemplateTest.cs (1)
1104var constraint = new MaxLengthRouteConstraint(20);
RouteTest.cs (1)
1210var constraint = new MaxLengthRouteConstraint(20);