Esempio n. 1
0
 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);
        }
Esempio n. 3
0
 public GateCorsMiddleware(IRouteDefinitionMatcher routeDefinitionMatcher, RequestDelegate next)
 {
     _routeDefinitionMatcher = routeDefinitionMatcher;
     _next = next;
 }
Esempio n. 4
0
 public void Initialize()
 {
     _next = A.Fake <RequestDelegate>();
     _routeDefinitionMatcher = A.Fake <IRouteDefinitionMatcher>();
     _middleware             = new GateCorsMiddleware(_routeDefinitionMatcher, _next);
 }