3 instantiations of RegexInlineRouteConstraint
Microsoft.AspNetCore.Routing.Tests (3)
Constraints\RegexInlineRouteConstraintTests.cs (3)
26var constraint = new RegexInlineRouteConstraint(constraintValue); 45var constraint = new RegexInlineRouteConstraint("^abc$"); 73var constraint = new RegexInlineRouteConstraint("^([a-z]+)$");
22 references to RegexInlineRouteConstraint
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
72routeOptions.ConstraintMap["regex"] = typeof(RegexInlineRouteConstraint); 151options.ConstraintMap["regex"] = typeof(RegexInlineRouteConstraint);
Microsoft.AspNetCore.Routing (2)
Constraints\RegexInlineRouteConstraint.cs (1)
22/// Initializes a new instance of the <see cref="RegexInlineRouteConstraint" /> class.
RegexInlineRouteConstraintSetup.cs (1)
21options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
20routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
32routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Routing.Tests (14)
Constraints\RegexInlineRouteConstraintTests.cs (3)
26var constraint = new RegexInlineRouteConstraint(constraintValue); 45var constraint = new RegexInlineRouteConstraint("^abc$"); 73var constraint = new RegexInlineRouteConstraint("^([a-z]+)$");
DefaultInlineConstraintResolverTest.cs (3)
19routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex"); 73Assert.IsType<RegexInlineRouteConstraint>(constraint); 84Assert.IsType<RegexInlineRouteConstraint>(constraint);
Matching\DfaMatcherBuilderTest.cs (1)
3550["regex"] = typeof(RegexInlineRouteConstraint) // Regex not included by default since introduction of CreateSlimBuilder
Matching\RouteMatcherBuilder.cs (1)
20routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Matching\TreeRouterMatcherBuilder.cs (1)
32routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
RouteTest.cs (2)
235Assert.IsType<RegexInlineRouteConstraint>(route.Constraints["ssn"]); 1864options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
TemplateParserDefaultValuesTests.cs (2)
133options.SetParameterPolicy<RegexInlineRouteConstraint>("regex"); 149accessor.Value.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Tree\TreeRouterTest.cs (1)
2061options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (1)
2646options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
WebHostTests.cs (1)
124Assert.Equal(typeof(RegexInlineRouteConstraint), routeOptions.Value.ConstraintMap["regex"]);