Exemple #1
0
 public IdentityRoleManager_Tests()
 {
     _identityRoleManager    = GetRequiredService <IdentityRoleManager>();
     _identityRoleRepository = GetRequiredService <IIdentityRoleRepository>();
     _lookupNormalizer       = GetRequiredService <ILookupNormalizer>();
     _testData = GetRequiredService <IdentityTestData>();
 }
Exemple #2
0
 public IdentityRoleAppService(
     IdentityRoleManager roleManager,
     IIdentityRoleRepository roleRepository)
 {
     _roleManager    = roleManager;
     _roleRepository = roleRepository;
 }
Exemple #3
0
 public HelloIdentityRoleAppService(IdentityRoleManager roleManager,
                                    IIdentityRoleRepository roleRepository,
                                    IStringLocalizer <HelloAbpResource> localizer,
                                    OrganizationUnitManager orgManager) : base(roleManager, roleRepository)
 {
     _localizer = localizer;
     OrgManager = orgManager;
 }
 public IdentityRoleAppService(
     IdentityRoleManager roleManager,
     IIdentityRoleRepository roleRepository,
     IPermissionAppServiceHelper permissionAppServiceHelper)
 {
     _roleManager                = roleManager;
     _roleRepository             = roleRepository;
     _permissionAppServiceHelper = permissionAppServiceHelper;
 }
Exemple #5
0
 public RoleChangingEvents_Test()
 {
     RoleRepository            = GetRequiredService <IIdentityRoleRepository>();;
     PermissionGrantRepository = GetRequiredService <IPermissionGrantRepository>();;
     RoleManager      = GetRequiredService <IdentityRoleManager>();;
     LookupNormalizer = GetRequiredService <ILookupNormalizer>();;
     GuidGenerator    = GetRequiredService <IGuidGenerator>();
     UowManager       = GetRequiredService <IUnitOfWorkManager>();
 }
Exemple #6
0
 public Distributed_Role_Change_Events_Test()
 {
     RoleRepository = GetRequiredService <IIdentityRoleRepository>();
     ;
     PermissionGrantRepository = GetRequiredService <IPermissionGrantRepository>();
     ;
     RoleManager = GetRequiredService <IdentityRoleManager>();
     ;
     LookupNormalizer = GetRequiredService <ILookupNormalizer>();
     ;
     UowManager = GetRequiredService <IUnitOfWorkManager>();
     Cache      = GetRequiredService <IDistributedCache <PermissionGrantCacheItem> >();
 }
Exemple #7
0
 public IdentityDataSeeder(
     IGuidGenerator guidGenerator,
     IIdentityRoleRepository roleRepository,
     IIdentityUserRepository userRepository,
     ILookupNormalizer lookupNormalizer,
     IdentityUserManager userManager,
     IdentityRoleManager roleManager)
 {
     _guidGenerator    = guidGenerator;
     _roleRepository   = roleRepository;
     _userRepository   = userRepository;
     _lookupNormalizer = lookupNormalizer;
     _userManager      = userManager;
     _roleManager      = roleManager;
 }
Exemple #8
0
 public IdentityDataSeeder(
     IGuidGenerator guidGenerator,
     IIdentityRoleRepository roleRepository,
     IIdentityUserRepository userRepository,
     ILookupNormalizer lookupNormalizer,
     IdentityUserManager userManager,
     IdentityRoleManager roleManager,
     ICurrentTenant currentTenant)
 {
     GuidGenerator    = guidGenerator;
     RoleRepository   = roleRepository;
     UserRepository   = userRepository;
     LookupNormalizer = lookupNormalizer;
     UserManager      = userManager;
     RoleManager      = roleManager;
     CurrentTenant    = currentTenant;
 }