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