85 references to AddRoute
Microsoft.AspNetCore.Components.Tests (85)
Routing\RouteTableFactoryTests.cs (85)
173var routeTable = new TestRouteTableBuilder().AddRoute("/").Build(); 187var routeTable = new TestRouteTableBuilder().AddRoute("/literal").Build(); 201var routeTable = new TestRouteTableBuilder().AddRoute("/some/awesome/route/").Build(); 215var routeTable = new TestRouteTableBuilder().AddRoute("/some/AWESOME/route/").Build(); 229var routeTable = new TestRouteTableBuilder().AddRoute("/some/ünicõdē/🛣/").Build(); 243var routeTable = new TestRouteTableBuilder().AddRoute("/some/AWESOME/route/").Build(); 265var routeTable = new TestRouteTableBuilder().AddRoute(template).Build(); 281var routeTable = new TestRouteTableBuilder().AddRoute("/some/awesome/route/").Build(); 300var routeTable = new TestRouteTableBuilder().AddRoute("/{parameter}").Build(); 317var routeTable = new TestRouteTableBuilder().AddRoute("/blog/{*parameter}").Build(); 332var routeTable = new TestRouteTableBuilder().AddRoute("/{some}/awesome/{route}/").Build(); 353var routeTable = new TestRouteTableBuilder().AddRoute("/{some}/awesome/{route}/with/{*catchAll}").Build(); 391var routeTable = new TestRouteTableBuilder().AddRoute(template).Build(); 416.AddRoute("/{*last}") 417.AddRoute("/{*last:int}") 418.AddRoute("/{last}") 419.AddRoute("/{last:int}") 420.AddRoute("/literal") 421.AddRoute("/literal/{*last}") 422.AddRoute("/literal/{*last:int}") 423.AddRoute("/literal/{last}") 424.AddRoute("/literal/{last:int}") 425.AddRoute("/literal/literal"); 462.AddRoute(first, typeof(TestHandler1)) 463.AddRoute(second, typeof(TestHandler2)) 486.AddRoute(template) 506.AddRoute("{*catchall}") 526.AddRoute("{parameter?}") 550.AddRoute("{param1?}/{param2?}/{param3?}") 584.AddRoute("prefix/{param1?}/{param2?}/{param3?}") 622.AddRoute(template) 644.AddRoute("/values/{*values:int}") 664var routeTable = new TestRouteTableBuilder().AddRoute(template).Build(); 694var routeTable = new TestRouteTableBuilder().AddRoute(template).Build(); 720var routeTable = new TestRouteTableBuilder().AddRoute(template).Build(); 750var routeTable = new TestRouteTableBuilder().AddRoute(template).Build(); 768.AddRoute("/an/awesome/path", typeof(TestHandler1)) 769.AddRoute("/{some}/awesome/{route}/", typeof(TestHandler2)) 786.AddRoute("/users/1", typeof(TestHandler1)) 787.AddRoute("/users/{id?}", typeof(TestHandler2)) 804.AddRoute("/users/{id}", typeof(TestHandler1)) 805.AddRoute("/users/{id?}", typeof(TestHandler2)) 822.AddRoute(template) 837.AddRoute(template) 848.AddRoute(first, typeof(TestHandler1)) 849.AddRoute(second, typeof(TestHandler2)) 883.AddRoute(first, typeof(TestHandler1)) 884.AddRoute(second, typeof(TestHandler2)); 901.AddRoute("literal?") 910.AddRoute("/users/1/friends", typeof(TestHandler1)) 911.AddRoute("/users/{id}/{location}", typeof(TestHandler2)) 912.AddRoute("/users/1/{location}", typeof(TestHandler2)) 931.AddRoute("/an/awesome/path") 932.AddRoute("/an/awesome/", handler).Build(); 943.AddRoute("/products/{id}") 944.AddRoute("/products/{id:int}").Build(); 963.AddRoute("/{anythingGoes}", typeof(TestHandler1)) 964.AddRoute("/users/{id?}", typeof(TestHandler2)) 983.AddRoute("/an/awesome/", handler) 984.AddRoute("/a/brilliant/").Build(); 996builder.AddRoute("r16"); 997builder.AddRoute("r05"); 998builder.AddRoute("r09"); 999builder.AddRoute("r00"); 1000builder.AddRoute("r13"); 1001builder.AddRoute("r02"); 1002builder.AddRoute("r03"); 1003builder.AddRoute("r10"); 1004builder.AddRoute("r15"); 1005builder.AddRoute("r14"); 1006builder.AddRoute("r12"); 1007builder.AddRoute("r07"); 1008builder.AddRoute("r11"); 1009builder.AddRoute("r08"); 1010builder.AddRoute("r06"); 1011builder.AddRoute("r04"); 1012builder.AddRoute("r01"); 1045.AddRoute(left) 1046.AddRoute(right).Build()); 1061.AddRoute(left) 1062.AddRoute(right).Build(); 1072.AddRoute("/{unrelated}", typeof(TestHandler2)) 1073.AddRoute("/products/{param2}/{PaRam1}", typeof(TestHandler1)) 1074.AddRoute("/products/{param1:int}", typeof(TestHandler1)) 1075.AddRoute("/", typeof(TestHandler1))