7 writes to Routers
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
PageRemoteAttributeTest.cs (5)
40Routers = { Mock.Of<IRouter>() } 78Routers = { Mock.Of<IRouter>() } 110Routers = { Mock.Of<IRouter>() } 141Routers = { Mock.Of<IRouter>() } 211Routers = { Mock.Of<IRouter>(), },
RemoteAttributeTest.cs (2)
393Routers = 477Routers = { Mock.Of<IRouter>(), },
58 references to Routers
Microsoft.AspNetCore.Mvc.Core (1)
Routing\UrlHelper.cs (1)
38var routers = ActionContext.RouteData.Routers;
Microsoft.AspNetCore.Mvc.Core.Test (15)
AcceptedAtActionResultTests.cs (1)
240routeData.Routers.Add(Mock.Of<IRouter>());
AcceptedAtRouteResultTests.cs (1)
148routeData.Routers.Add(Mock.Of<IRouter>());
AcceptedResultTests.cs (1)
106routeData.Routers.Add(Mock.Of<IRouter>());
ChallengeResultTest.cs (2)
30routeData.Routers.Add(Mock.Of<IRouter>()); 55routeData.Routers.Add(Mock.Of<IRouter>());
ContentResultTest.cs (1)
249routeData.Routers.Add(Mock.Of<IRouter>());
CreatedAtActionResultTests.cs (1)
69routeData.Routers.Add(Mock.Of<IRouter>());
CreatedAtRouteResultTests.cs (1)
82routeData.Routers.Add(Mock.Of<IRouter>());
CreatedResultTests.cs (1)
115routeData.Routers.Add(Mock.Of<IRouter>());
Infrastructure\ActionSelectorTest.cs (1)
1100routeData.Routers.Add(new Mock<IRouter>(MockBehavior.Strict).Object);
LocalRedirectResultTest.cs (1)
131routeData.Routers.Add(new Mock<IRouter>().Object);
Routing\UrlHelperTest.cs (4)
25actionContext.RouteData.Routers.Add(defaultRoutes); 40actionContext.RouteData.Routers.Add(router); 56actionContext.RouteData.Routers.Add(router); 79actionContext.RouteData.Routers.Add(router);
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (20)
RouteDataTest.cs (20)
18Assert.Empty(routeData.Routers); 29original.Routers.Add(Mock.Of<IRouter>()); 37Assert.NotSame(routeData.Routers, original.Routers); 38Assert.Equal(routeData.Routers, original.Routers); 56Assert.Equal(routeData.Routers, copy.Routers); 73Assert.Equal(routeData.Routers, copy.Routers); 108routeData.Routers.Add(Mock.Of<IRouter>()); 117Assert.Empty(routeData.Routers); 118Assert.NotEqual(routeData.Routers, copy.Routers); 129original.Routers.Add(Mock.Of<IRouter>()); 141routeData.Routers.Add(Mock.Of<IRouter>()); 150Assert.Equal(original.Routers, routeData.Routers); 151Assert.NotEqual(routeData.Routers, copy.Routers);
Microsoft.AspNetCore.Routing (4)
Route.cs (1)
94context.RouteData.Routers.Add(_target);
RouteCollection.cs (1)
75context.RouteData.Routers.Add(route);
RouterMiddleware.cs (1)
44context.RouteData.Routers.Add(_router);
Tree\TreeRouter.cs (1)
212context.RouteData.Routers.Add(entry.Handler);
Microsoft.AspNetCore.Routing.Abstractions (5)
RouteData.cs (5)
40_routers = new List<IRouter>(other.Routers); 116/// <paramref name="router"/> to <see cref="Routers"/>, merging <paramref name="values"/> into 126/// An <see cref="IRouter"/> to append to <see cref="Routers"/>. If <c>null</c>, then <see cref="Routers"/> 163Routers.Add(router);
Microsoft.AspNetCore.Routing.Tests (12)
RouteCollectionTest.cs (5)
182Assert.Single(context.RouteData.Routers); 183Assert.Same(route1.Object, context.RouteData.Routers[0]); 208Assert.Single(context.RouteData.Routers); 209Assert.Same(route2.Object, context.RouteData.Routers[0]); 233Assert.Empty(context.RouteData.Routers);
RouteTest.cs (2)
496Assert.Single(context.RouteData.Routers); 497Assert.Same(target, context.RouteData.Routers[0]);
Tree\TreeRouterTest.cs (5)
1748nestedRouters = new List<IRouter>(c.RouteData.Routers); 1785nestedRouters = new List<IRouter>(c.RouteData.Routers); 1810Assert.Empty(context.RouteData.Routers); 1829nestedRouters = new List<IRouter>(c.RouteData.Routers); 1852Assert.Empty(context.RouteData.Routers);
Mvc.RoutingWebSite (1)
Controllers\RouteDataController.cs (1)
38var routers = RouteData.Routers.Select(r => r.GetType().FullName).ToArray();