5 references to UseRouter
Microsoft.AspNetCore.Mvc.Core (1)
Builder\MvcApplicationBuilderExtensions.cs (1)
88
return app.
UseRouter
(routes.Build());
Microsoft.AspNetCore.Routing (1)
Builder\RoutingBuilderExtensions.cs (1)
59
return builder.
UseRouter
(routeBuilder.Build());
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RoutingBuilderExtensionsTest.cs (3)
26
() => applicationBuilderMock.Object.
UseRouter
(router));
42
var ex = Assert.Throws<InvalidOperationException>(() => app.
UseRouter
(Mock.Of<IRouter>()));
83
app.
UseRouter
(router.Object);