6 references to CustomRouteConstraint
Microsoft.AspNetCore.Routing.Tests (6)
DefaultInlineConstraintResolverTest.cs (6)
260
routeOptions.ConstraintMap.Add("custom", typeof(
CustomRouteConstraint
));
267
Assert.IsType<
CustomRouteConstraint
>(constraint);
275
routeOptions.SetParameterPolicy("custom", typeof(
CustomRouteConstraint
));
282
Assert.IsType<
CustomRouteConstraint
>(constraint);
300
routeOptions.SetParameterPolicy<
CustomRouteConstraint
>("custom");
307
Assert.IsType<
CustomRouteConstraint
>(constraint);