2 implementations of Routes
Microsoft.AspNetCore.Mvc.Core (1)
Builder\MvcApplicationBuilderExtensions.cs (1)
109public IList<IRouter> Routes { get; }
Microsoft.AspNetCore.Routing (1)
RouteBuilder.cs (1)
60public IList<IRouter> Routes { get; }
22 references to Routes
Microsoft.AspNetCore.Mvc.Core.Test (8)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (7)
24var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 59var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 100var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 147var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 200var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 238var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 284.SetupGet(b => b.Routes)
Routing\UrlHelperTest.cs (1)
121routeBuilder.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)
117routeBuilder.Routes.Add(new Route(
RequestDelegateRouteBuilderExtensions.cs (2)
35builder.Routes.Add(route); 273builder.Routes.Add(route);
Microsoft.AspNetCore.Routing.Tests (10)
Builder\RoutingBuilderExtensionsTest.cs (1)
110b.Routes.Add(router.Object);
RouteTest.cs (7)
1576var templateRoute = (Route)routeBuilder.Routes[0]; 1597var templateRoute = (Route)routeBuilder.Routes[0]; 1639var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1660var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1681var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1695var name = ((Route)routeBuilder.Routes[0]).Name; 1713var name = ((Route)routeBuilder.Routes[0]).Name;
TemplateParserDefaultValuesTests.cs (2)
30var defaults = ((Route)routeBuilder.Routes[0]).Defaults; 49var defaults = ((Route)routeBuilder.Routes[0]).Defaults;