11 references to ParameterPart
Microsoft.AspNetCore.Routing.Tests (11)
DefaultParameterPolicyFactoryTest.cs (4)
22() => factory.Create(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), @"notpresent(\d+)")); 184var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), "int"); 204var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), "customParameterPolicy"); 393var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), "customParameterPolicy");
Patterns\RoutePatternParserTest.cs (7)
50var expected = Pattern(template, Segment(ParameterPart("p", null, RoutePatternParameterKind.Optional))); 88Segment(ParameterPart("p3", null, RoutePatternParameterKind.CatchAll))); 186ParameterPart("p2", null, RoutePatternParameterKind.Optional))); 228ParameterPart("p3", null, RoutePatternParameterKind.Optional))); 270ParameterPart("p2", null, RoutePatternParameterKind.Optional)), 294ParameterPart("p3", null, RoutePatternParameterKind.Optional))); 314ParameterPart("p3", null, RoutePatternParameterKind.Optional)));