public GateRoutingMiddleware(IRouteDefinitionMatcher routeDefinitionMatcher, ILogger <GateRoutingMiddleware> logger, RequestDelegate next) { _routeDefinitionMatcher = routeDefinitionMatcher; _logger = logger; _next = next; }
public void Initialize() { _next = A.Fake <RequestDelegate>(); _routeDefinitionMatcher = A.Fake <IRouteDefinitionMatcher>(); var logger = A.Fake <ILogger <GateRoutingMiddleware> >(); _middleware = new GateRoutingMiddleware(_routeDefinitionMatcher, logger, _next); }
public GateCorsMiddleware(IRouteDefinitionMatcher routeDefinitionMatcher, RequestDelegate next) { _routeDefinitionMatcher = routeDefinitionMatcher; _next = next; }
public void Initialize() { _next = A.Fake <RequestDelegate>(); _routeDefinitionMatcher = A.Fake <IRouteDefinitionMatcher>(); _middleware = new GateCorsMiddleware(_routeDefinitionMatcher, _next); }