20 instantiations of Route
Microsoft.AspNetCore.Routing (3)
MapRouteRouteBuilderExtensions.cs (1)
117
routeBuilder.Routes.Add(new
Route
(
RequestDelegateRouteBuilderExtensions.cs (2)
27
var route = new
Route
(
265
var route = new
Route
(
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
62
routes.Add(new
Route
(
Microsoft.AspNetCore.Routing.Tests (16)
Matching\RouteMatcherBuilder.cs (1)
62
routes.Add(new
Route
(
RouteCollectionTest.cs (1)
578
return new
Route
(
RouterMiddlewareTest.cs (1)
52
var route = new
Route
(handler, "/foo/{id}", Mock.Of<IInlineConstraintResolver>());
RouteTest.cs (13)
32
() => new
Route
(
76
var route = new
Route
(
132
var route = new
Route
(
184
var route = new
Route
(
226
var route = new
Route
(
268
var route = new
Route
(
311
var route = new
Route
(
360
var route = new
Route
(
1776
return new
Route
(
1788
return new
Route
(CreateTarget(handleRequest), template, _inlineConstraintResolver);
1798
return new
Route
(
1809
return new
Route
(
1824
return new
Route
(
100 references to Route
Microsoft.AspNetCore.Mvc.Core.Test (12)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (12)
24
var
route = Assert.IsType<
Route
>((Assert.Single(builder.Routes)));
59
var
route = Assert.IsType<
Route
>((Assert.Single(builder.Routes)));
100
var
route = Assert.IsType<
Route
>((Assert.Single(builder.Routes)));
147
var
route = Assert.IsType<
Route
>((Assert.Single(builder.Routes)));
200
var
route = Assert.IsType<
Route
>((Assert.Single(builder.Routes)));
238
var
route = Assert.IsType<
Route
>((Assert.Single(builder.Routes)));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
RoutingTests.cs (1)
58
typeof(
Route
).FullName,
Microsoft.AspNetCore.Routing (5)
RequestDelegateRouteBuilderExtensions.cs (2)
27
var
route = new Route(
265
var
route = new Route(
Route.cs (3)
16
/// Constructs a new <see cref="
Route
"/> instance.
36
/// Constructs a new <see cref="
Route
"/> instance.
56
/// Constructs a new <see cref="
Route
"/> instance.
Microsoft.AspNetCore.Routing.Tests (82)
RouteCollectionTest.cs (6)
137
var
route = CreateTemplateRoute("{controller}", routerName, dataTokens);
385
var
route = CreateTemplateRoute(template);
405
new
Route
[]
431
Route
[] routes,
438
foreach (
var
route in routes)
562
private static
Route
CreateTemplateRoute(
RouterMiddlewareTest.cs (1)
52
var
route = new Route(handler, "/foo/{id}", Mock.Of<IInlineConstraintResolver>());
RouteTest.cs (73)
76
var
route = new Route(
132
var
route = new Route(
184
var
route = new Route(
226
var
route = new Route(
268
var
route = new Route(
311
var
route = new Route(
360
var
route = new Route(
383
var
route = CreateRoute("{controller}/{action}");
400
var
route = CreateRoute("");
415
var
route = CreateRoute("{controller}/{action}", new { action = "Index" });
432
var
route = CreateRoute(
455
var
route = CreateRoute("{controller}/{action}");
469
var
route = CreateRoute("{controller}", handleRequest: false);
488
var
route = CreateRoute(target, "{controller}");
504
var
route = CreateRoute("{controller}/{action}");
518
var
route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index" });
536
var
route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index" });
553
var
route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index", format = "xml" });
571
var
route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index" });
603
var
route = CreateRoute("{controller}");
619
var
route = CreateRoute("{controller}/{action}");
633
var
route = CreateRoute("{controller}/{action}");
669
var
route = CreateRoute("{controller}/{action}");
684
var
route = CreateRoute("{controller}/{action}");
702
var
route = CreateRoute("{controller}/{action}");
720
var
route = CreateRoute("{controller}/{action}");
738
var
route = CreateRoute("{controller}/{action}");
768
var
route = CreateRoute(
809
var
route = CreateRoute(
839
var
route = CreateRoute("{controller}", handleRequest: false);
855
var
route = CreateRoute("{controller}/{action}");
873
var
route = CreateRoute(
892
var
route = CreateRoute(
914
var
route = CreateRoute(
933
var
route = CreateRoute(
967
var
route = CreateRoute(
992
var
route = CreateRoute(
1023
var
route = CreateRoute(
1053
var
route = CreateRoute(
1084
var
route = CreateRoute(
1112
var
route = CreateRoute("{controller}/{action}/{id:int}");
1129
var
route = CreateRoute("{controller}/{action}/{id:int}");
1144
var
route = CreateRoute("{controller}/{action}/{id:int?}");
1161
var
route = CreateRoute("{controller}/{action}/{id:int?}");
1178
var
route = CreateRoute("{controller}/{action}/{id:int?}");
1193
var
route = CreateRoute("{controller}/{action}/{id:int:range(1,20)}");
1211
var
route = CreateRoute(
1233
var
route = CreateRoute(
1255
var
route = CreateRoute(
1277
var
route = CreateRoute(
1299
var
route = CreateRoute(
1321
var
route = CreateRoute(
1343
var
route = CreateRoute(
1365
var
route = CreateRoute(
1387
var
route = CreateRoute(
1409
var
route = CreateRoute(
1433
var
route = CreateRoute(
1457
var
route = CreateRoute(
1481
var
route = CreateRoute(
1576
var
templateRoute = (
Route
)routeBuilder.Routes[0];
1597
var
templateRoute = (
Route
)routeBuilder.Routes[0];
1639
var constraints = ((
Route
)routeBuilder.Routes[0]).Constraints;
1660
var constraints = ((
Route
)routeBuilder.Routes[0]).Constraints;
1681
var constraints = ((
Route
)routeBuilder.Routes[0]).Constraints;
1695
var name = ((
Route
)routeBuilder.Routes[0]).Name;
1713
var name = ((
Route
)routeBuilder.Routes[0]).Name;
1774
private static
Route
CreateRoute(string routeName, string template, bool handleRequest = true)
1786
private static
Route
CreateRoute(string template, bool handleRequest = true)
1791
private static
Route
CreateRoute(
1807
private static
Route
CreateRoute(IRouter target, string template)
1818
private static
Route
CreateRoute(
TemplateParserDefaultValuesTests.cs (2)
30
var defaults = ((
Route
)routeBuilder.Routes[0]).Defaults;
49
var defaults = ((
Route
)routeBuilder.Routes[0]).Defaults;