2 implementations of Routes
Microsoft.AspNetCore.Mvc.Core (1)
Builder\MvcApplicationBuilderExtensions.cs (1)
109
public IList<IRouter>
Routes
{ get; }
Microsoft.AspNetCore.Routing (1)
RouteBuilder.cs (1)
60
public IList<IRouter>
Routes
{ get; }
22 references to Routes
Microsoft.AspNetCore.Mvc.Core.Test (8)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (7)
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
)));
284
.SetupGet(b => b.
Routes
)
Routing\UrlHelperTest.cs (1)
121
routeBuilder.
Routes
.Add(mockHttpRoute.Object);
Microsoft.AspNetCore.Routing (4)
IRouteBuilder.cs (1)
36
/// Builds an <see cref="IRouter"/> that routes the routes specified in the <see cref="
Routes
"/> property.
MapRouteRouteBuilderExtensions.cs (1)
117
routeBuilder.
Routes
.Add(new Route(
RequestDelegateRouteBuilderExtensions.cs (2)
35
builder.
Routes
.Add(route);
273
builder.
Routes
.Add(route);
Microsoft.AspNetCore.Routing.Tests (10)
Builder\RoutingBuilderExtensionsTest.cs (1)
110
b.
Routes
.Add(router.Object);
RouteTest.cs (7)
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;
TemplateParserDefaultValuesTests.cs (2)
30
var defaults = ((Route)routeBuilder.
Routes
[0]).Defaults;
49
var defaults = ((Route)routeBuilder.
Routes
[0]).Defaults;