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