Пример #1
0
 public IdentityRoleAppService_Tests()
 {
     _roleAppService             = GetRequiredService <IIdentityRoleAppService>();
     _roleRepository             = GetRequiredService <IIdentityRoleRepository>();
     _organization               = GetRequiredService <OrganizationUnitManager>();
     _organizationUnitRepository = GetRequiredService <IOrganizationUnitRepository>();
 }
Пример #2
0
 public AbpIdentityTestDataBuilder(
     IGuidGenerator guidGenerator,
     IIdentityUserRepository userRepository,
     IIdentityClaimTypeRepository identityClaimTypeRepository,
     IIdentityRoleRepository roleRepository,
     IOrganizationUnitRepository organizationUnitRepository,
     IIdentitySecurityLogRepository identitySecurityLogRepository,
     ILookupNormalizer lookupNormalizer,
     IdentityTestData testData,
     OrganizationUnitManager organizationUnitManager,
     IIdentityLinkUserRepository identityLinkUserRepository,
     IdentityLinkUserManager identityLinkUserManager)
 {
     _guidGenerator  = guidGenerator;
     _userRepository = userRepository;
     _identityClaimTypeRepository = identityClaimTypeRepository;
     _roleRepository                = roleRepository;
     _lookupNormalizer              = lookupNormalizer;
     _testData                      = testData;
     _organizationUnitRepository    = organizationUnitRepository;
     _organizationUnitManager       = organizationUnitManager;
     _identityLinkUserRepository    = identityLinkUserRepository;
     _identityLinkUserManager       = identityLinkUserManager;
     _identitySecurityLogRepository = identitySecurityLogRepository;
 }
Пример #3
0
 public OrganizationUnitAppService(
     OrganizationUnitManager unitManager,
     IOrganizationUnitRepository unitRepository)
 {
     UnitManager    = unitManager;
     UnitRepository = unitRepository;
 }
Пример #4
0
 public HelloIdentityRoleAppService(IdentityRoleManager roleManager,
                                    IIdentityRoleRepository roleRepository,
                                    IStringLocalizer <HelloAbpResource> localizer,
                                    OrganizationUnitManager orgManager) : base(roleManager, roleRepository)
 {
     _localizer = localizer;
     OrgManager = orgManager;
 }
Пример #5
0
 public OrganizationUnitManager_Tests()
 {
     _organizationUnitManager    = GetRequiredService <OrganizationUnitManager>();
     _organizationUnitRepository = GetRequiredService <IOrganizationUnitRepository>();
     _identityRoleRepository     = GetRequiredService <IIdentityRoleRepository>();
     _lookupNormalizer           = GetRequiredService <ILookupNormalizer>();
     _testData          = GetRequiredService <IdentityTestData>();
     _unitOfWorkManager = GetRequiredService <IUnitOfWorkManager>();
     _guidGenerator     = GetService <IGuidGenerator>();
 }
Пример #6
0
 public OrganizationUnitAppService(
     OrganizationUnitManager unitManager,
     IOrganizationUnitRepository unitRepository,
     IIdentityUserAppService userAppService,
     IIdentityRoleAppService roleAppService)
 {
     UnitManager    = unitManager;
     UnitRepository = unitRepository;
     UserAppService = userAppService;
     RoleAppService = roleAppService;
 }
Пример #7
0
        public OrganizationUnitAppService(
            OrganizationUnitManager unitManager,
            IOrganizationUnitRepository unitRepository,
            IIdentityUserAppService userAppService,
            IIdentityRoleAppService roleAppService,
            IDistributedCache <OrganizationUnitDto> cache,
            IDistributedCache <ListResultDto <OrganizationUnitDto> > cacheList,
            IDistributedCache <PagedResultDto <OrganizationUnitDto> > cachePage
            )
        {
            UnitManager    = unitManager;
            UnitRepository = unitRepository;
            UserAppService = userAppService;
            RoleAppService = roleAppService;


            _cache     = cache;
            _cacheList = cacheList;
            _cachePage = cachePage;
        }