60 references to ParameterPart
Microsoft.AspNetCore.Routing.Tests (60)
DefaultParameterPolicyFactoryTest.cs (11)
44() => factory.Create(RoutePatternFactory.ParameterPart("id"), @"bad")); 156var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "int"); 169var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "range(1,20)"); 223var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(20)"); 244var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(20,-1)"); 267var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy"); 288var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(1)"); 309var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(1)"); 332() => factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(1)")); 352var parameterPolicy = factory.Create(RoutePatternFactory.ParameterPart("id"), @"regex-service(\\d{1,2})"); 373() => factory.Create(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(20)"));
Patterns\RoutePatternFactoryTest.cs (24)
407var paramPartB = RoutePatternFactory.ParameterPart("B"); 408var paramPartC = RoutePatternFactory.ParameterPart("C"); 409var paramPartD = RoutePatternFactory.ParameterPart("D"); 420segments[1] = RoutePatternFactory.Segment(RoutePatternFactory.ParameterPart("E")); 436var paramPartB = RoutePatternFactory.ParameterPart("B"); 437var paramPartC = RoutePatternFactory.ParameterPart("C"); 438var paramPartD = RoutePatternFactory.ParameterPart("D"); 449segments[1] = RoutePatternFactory.Segment(RoutePatternFactory.ParameterPart("E")); 466var paramPartB = RoutePatternFactory.ParameterPart("B"); 467var paramPartC = RoutePatternFactory.ParameterPart("C"); 468var paramPartD = RoutePatternFactory.ParameterPart("D"); 479segments[1] = RoutePatternFactory.Segment(RoutePatternFactory.ParameterPart("E")); 506var paramPartB = RoutePatternFactory.ParameterPart("B"); 507var paramPartC = RoutePatternFactory.ParameterPart("C"); 508var paramPartD = RoutePatternFactory.ParameterPart("D"); 519segments[1] = RoutePatternFactory.Segment(RoutePatternFactory.ParameterPart("E")); 679var paramPartB = RoutePatternFactory.ParameterPart("B"); 680var paramPartC = RoutePatternFactory.ParameterPart("C"); 681var paramPartD = RoutePatternFactory.ParameterPart("D"); 686parts[1] = RoutePatternFactory.ParameterPart("E"); 700var paramPartB = RoutePatternFactory.ParameterPart("B"); 701var paramPartC = RoutePatternFactory.ParameterPart("C"); 702var paramPartD = RoutePatternFactory.ParameterPart("D"); 707parts[1] = RoutePatternFactory.ParameterPart("E");
Patterns\RoutePatternParserTest.cs (21)
35var expected = Pattern(template, Segment(ParameterPart("p"))); 86Segment(ParameterPart("p1")), 87Segment(ParameterPart("p2")), 107ParameterPart("p1"))); 125ParameterPart("p1"), 144ParameterPart("p1"), 146ParameterPart("p2"))); 165ParameterPart("p1"), 184ParameterPart("p1"), 204ParameterPart("p1"), 206ParameterPart("p2"))); 224ParameterPart("p1"), 226ParameterPart("p2"), 246ParameterPart("p1"), 248ParameterPart("p2"), 250ParameterPart("p3"))); 268ParameterPart("p1"), 272ParameterPart("p3"))); 290ParameterPart("p1")), 292ParameterPart("p2"), 311Segment(ParameterPart("p2")),
Template\TemplateSegmentTest.cs (4)
24var paramPartB = RoutePatternFactory.ParameterPart("B"); 25var paramPartC = RoutePatternFactory.ParameterPart("C"); 26var paramPartD = RoutePatternFactory.ParameterPart("D"); 32templateSegment.Parts[1] = new TemplatePart(RoutePatternFactory.ParameterPart("D"));