예제 #1
0
 public AppRoleStore(IRoleQueryEntry roleQueryEntry)
 {
     if (roleQueryEntry == null)
     {
         throw new ArgumentNullException(nameof(roleQueryEntry));
     }
     _roleQueryEntry = roleQueryEntry;
 }
예제 #2
0
 public RolePermissionShipQueryEntry(
     IPermissionQueryEntry permissionQueryEntry,
     IRoleQueryEntry roleQueryEntry,
     IEfDbContextProvider efDbContextProvider
     ) : base(efDbContextProvider)
 {
     _permissionQueryEntry = permissionQueryEntry;
     _roleQueryEntry       = roleQueryEntry;
 }
예제 #3
0
        public RoleStoreTest(ITestOutputHelper output)
        {
            new Startup();
            var uowManager = AppConfig.Current.IoCManager.GetService <IUnitOfWorkManager>();

            _uow                          = uowManager.Build();
            _roleQueryEntry               = AppConfig.Current.IoCManager.GetService <IRoleQueryEntry>();
            _roleRepository               = AppConfig.Current.IoCManager.GetService <IRoleRepository>();
            _permissionQueryEntry         = AppConfig.Current.IoCManager.GetService <IPermissionQueryEntry>();
            _permissionRepository         = AppConfig.Current.IoCManager.GetService <IPermissionRepository>();
            _rolePermissionShipRepository = AppConfig.Current.IoCManager.GetService <IRolePermissionShipRepository>();
            _output                       = output;
        }
예제 #4
0
 public EmployeePermissionService(
     IPermissionQueryEntry permissionQueryEntry,
     IRoleQueryEntry roleQueryEntry,
     IEmployeeQueryEntry employeeQueryEntry,
     IRolePermissionShipQueryEntry rolePermissionShipQueryEntry,
     IEmployeePermissionShipQueryEntry employeePermissionShipQueryEntry
     )
 {
     _permissionQueryEntry             = permissionQueryEntry;
     _roleQueryEntry                   = roleQueryEntry;
     _employeeQueryEntry               = employeeQueryEntry;
     _employeePermissionShipQueryEntry = employeePermissionShipQueryEntry;
     _rolePermissionShipQueryEntry     = rolePermissionShipQueryEntry;
 }