public LocalAuthorizationHandlerTestsFixture() { Options = new [] { "" }; AuthorizationContext = new AuthorizationContext(); AuthorizationHandler = new Mock <IAuthorizationHandler>(); EnvironmentService = new Mock <IEnvironmentService>(); AuthorizationHandlerDecorator = new LocalAuthorizationHandler(AuthorizationHandler.Object, EnvironmentService.Object); AuthorizationResult = new AuthorizationResult(); }
public LocalAuthorizationHandlerTestsFixture() { Options = new [] { "" }; AuthorizationContext = new AuthorizationContext(); AuthorizationHandler = new Mock <IAuthorizationHandler>(); HostingEnvironment = new Mock <IHostingEnvironment>(); AuthorizationHandlerDecorator = new LocalAuthorizationHandler(HostingEnvironment.Object, AuthorizationHandler.Object); AuthorizationResult = new AuthorizationResult(); }