public AppRoleStore(IRoleQueryEntry roleQueryEntry) { if (roleQueryEntry == null) { throw new ArgumentNullException(nameof(roleQueryEntry)); } _roleQueryEntry = roleQueryEntry; }
public RolePermissionShipQueryEntry( IPermissionQueryEntry permissionQueryEntry, IRoleQueryEntry roleQueryEntry, IEfDbContextProvider efDbContextProvider ) : base(efDbContextProvider) { _permissionQueryEntry = permissionQueryEntry; _roleQueryEntry = roleQueryEntry; }
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; }
public EmployeePermissionService( IPermissionQueryEntry permissionQueryEntry, IRoleQueryEntry roleQueryEntry, IEmployeeQueryEntry employeeQueryEntry, IRolePermissionShipQueryEntry rolePermissionShipQueryEntry, IEmployeePermissionShipQueryEntry employeePermissionShipQueryEntry ) { _permissionQueryEntry = permissionQueryEntry; _roleQueryEntry = roleQueryEntry; _employeeQueryEntry = employeeQueryEntry; _employeePermissionShipQueryEntry = employeePermissionShipQueryEntry; _rolePermissionShipQueryEntry = rolePermissionShipQueryEntry; }