8 instantiations of ExpectedTemplateBuilder
Microsoft.AspNetCore.Components.Tests (8)
Routing\TemplateParserTests.cs (8)
14var expected = new ExpectedTemplateBuilder().Literal("awesome"); 29var expected = new ExpectedTemplateBuilder().Parameter("p"); 44var expected = new ExpectedTemplateBuilder().Literal("awesome").Literal("cool").Literal("super"); 59var expected = new ExpectedTemplateBuilder().Parameter("p1").Parameter("p2").Parameter("p3"); 74var expected = new ExpectedTemplateBuilder().Parameter("p1?").Parameter("p2?").Parameter("p3?"); 89var expected = new ExpectedTemplateBuilder().Parameter(parsedTemplate, isCatchAll: true); 102var expected = new ExpectedTemplateBuilder().Literal("awesome").Literal("wow").Parameter("p", isCatchAll: true); 115var expected = new ExpectedTemplateBuilder().Literal("awesome").Parameter("p1").Parameter("p2", isCatchAll: true);
11 references to ExpectedTemplateBuilder
Microsoft.AspNetCore.Components.Tests (11)
Routing\TemplateParserTests.cs (11)
14var expected = new ExpectedTemplateBuilder().Literal("awesome"); 29var expected = new ExpectedTemplateBuilder().Parameter("p"); 44var expected = new ExpectedTemplateBuilder().Literal("awesome").Literal("cool").Literal("super"); 59var expected = new ExpectedTemplateBuilder().Parameter("p1").Parameter("p2").Parameter("p3"); 74var expected = new ExpectedTemplateBuilder().Parameter("p1?").Parameter("p2?").Parameter("p3?"); 89var expected = new ExpectedTemplateBuilder().Parameter(parsedTemplate, isCatchAll: true); 102var expected = new ExpectedTemplateBuilder().Literal("awesome").Literal("wow").Parameter("p", isCatchAll: true); 115var expected = new ExpectedTemplateBuilder().Literal("awesome").Parameter("p1").Parameter("p2", isCatchAll: true); 246public ExpectedTemplateBuilder Literal(string value) 256public ExpectedTemplateBuilder Parameter(string value, bool isCatchAll = false) 280public static implicit operator RoutePattern(ExpectedTemplateBuilder builder) => builder.Build();