Esempio n. 1
0
 public OranizationManager(IOranizationStore IOranizationStore, IRolesStore RolesStore, IUserStore IUserStore, IMapper IMapper)
 {
     this._IOranizationStore = IOranizationStore;
     this._IRolesStore       = RolesStore;
     this._Mapper            = IMapper;
     this._IUserStore        = IUserStore;
 }
        public CheckAccessSteps(DomainFrameworkFixture fixture)
            : base(fixture)
        {
            _rolesStore = Substitute.For <IRolesStore>();

            Register(() => _rolesStore, Lifestyle.Scoped);
        }
        public void RegisterScenarioDependencies(Container container)
        {
            _createHandler = Substitute.For <IRequestHandler <CreateUser.Request, User> >();
            container.Register(() => _createHandler, Lifestyle.Scoped);

            _getHandler = Substitute.For <IRequestHandler <GetUser.Request, User> >();
            container.Register(() => _getHandler, Lifestyle.Scoped);

            _rolesStore = Substitute.For <IRolesStore>();
            container.Register(() => _rolesStore, Lifestyle.Scoped);

            _applicationInfo = Substitute.For <IApplicationInfo>();
            _applicationInfo.IsRunningInProduction.Returns(true);
            container.Register(() => _applicationInfo, Lifestyle.Singleton);
        }
 public AuthorizationService(IRolesStore rolesStore, ICurrentUserManager currentUserManager)
 {
     _rolesStore         = rolesStore;
     _currentUserManager = currentUserManager;
 }
Esempio n. 5
0
 public UserManager(IUserStore IUserStore, IMapper IMapper, IRolesStore RolesStore)
 {
     this._IUserStore = IUserStore;
     this._Mapper     = IMapper;
     this._RolesStore = RolesStore;
 }
Esempio n. 6
0
 public CheckAuthority(IRolesStore rolesStore, IJurisdictionStore jurisdictionStore)
 {
     this._IRolesStore        = rolesStore;
     this._IJurisdictionStore = jurisdictionStore;
 }
Esempio n. 7
0
        public RolesManager(IRolesStore IRolesStore, IMapper IMapper)

        {
            this._IRolesStore = IRolesStore;
            this._Mapper      = IMapper;
        }
Esempio n. 8
0
 public TokenManager(ITokenStore IUserInfo, IRolesStore IRolesStore)
 {
     this._IUserInfo   = IUserInfo;
     this._IRolesStore = IRolesStore;
 }
Esempio n. 9
0
 public UserCheckPermissionImpl(IRolesStore IRolesStore)
 {
     this._IRolesStore = IRolesStore;
 }