Exemple #1
0
 public IdentityRoleAppService_Tests()
 {
     _roleAppService             = GetRequiredService <IIdentityRoleAppService>();
     _roleRepository             = GetRequiredService <IIdentityRoleRepository>();
     _organization               = GetRequiredService <OrganizationUnitManager>();
     _organizationUnitRepository = GetRequiredService <IOrganizationUnitRepository>();
 }
 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;
 }
Exemple #3
0
 public OrganizationUnitAppService(
     OrganizationUnitManager unitManager,
     IOrganizationUnitRepository unitRepository)
 {
     UnitManager    = unitManager;
     UnitRepository = unitRepository;
 }
Exemple #4
0
 public HelloIdentityRoleAppService(IdentityRoleManager roleManager,
                                    IIdentityRoleRepository roleRepository,
                                    IStringLocalizer <HelloAbpResource> localizer,
                                    OrganizationUnitManager orgManager) : base(roleManager, roleRepository)
 {
     _localizer = localizer;
     OrgManager = orgManager;
 }
Exemple #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>();
 }
 public OrganizationUnitAppService(
     OrganizationUnitManager unitManager,
     IOrganizationUnitRepository unitRepository,
     IIdentityUserAppService userAppService,
     IIdentityRoleAppService roleAppService)
 {
     UnitManager    = unitManager;
     UnitRepository = unitRepository;
     UserAppService = userAppService;
     RoleAppService = roleAppService;
 }
Exemple #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;
        }