示例#1
0
        public AppResolverTests()
        {
            actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor
            {
                EndpointMetadata = new List <object>()
            });

            actionExecutingContext                         = new ActionExecutingContext(actionContext, new List <IFilterMetadata>(), new Dictionary <string, object>(), this);
            actionExecutingContext.HttpContext             = httpContext;
            actionExecutingContext.RouteData.Values["app"] = appName;

            next = () =>
            {
                isNextCalled = true;

                return(Task.FromResult <ActionExecutedContext?>(null));
            };

            sut = new AppResolver(appProvider);
        }