public IgnoredPathMiddlewareTest()
        {
            _testServer = new TestServer(new WebHostBuilder()
                                         .UseStartup <TestStartup>());

            _ignoredRoutesRepository = (IIgnoredRoutesRepository)_testServer.Host.Services.GetService(typeof(IIgnoredRoutesRepository));
        }
Example #2
0
 public IgnoredPathMiddleware(RequestDelegate next, IIgnoredRoutesRepository routesRepository)
 {
     _next             = next;
     _routesRepository = routesRepository;
 }