public IgnoredPathMiddlewareTest() { _testServer = new TestServer(new WebHostBuilder() .UseStartup <TestStartup>()); _ignoredRoutesRepository = (IIgnoredRoutesRepository)_testServer.Host.Services.GetService(typeof(IIgnoredRoutesRepository)); }
public IgnoredPathMiddleware(RequestDelegate next, IIgnoredRoutesRepository routesRepository) { _next = next; _routesRepository = routesRepository; }