Exemple #1
0
        private void AddClaimTypes()
        {
            var ageClaim = new IdentityClaimType(_testData.AgeClaimId, "Age", false, false, null, null, null, IdentityClaimValueType.Int);

            _identityClaimTypeRepository.Insert(ageClaim);
            var educationClaim = new IdentityClaimType(_testData.EducationClaimId, "Education", true, false, null, null, null);

            _identityClaimTypeRepository.Insert(educationClaim);
        }
        private void AddClaimTypes()
        {
            var ageClaim = new IdentityClaimType(Guid.NewGuid(), "Age", false, false, null, null, null,
                                                 IdentityClaimValueType.Int);

            _identityClaimTypeRepository.Insert(ageClaim);
        }
Exemple #3
0
        public async Task Static_IdentityClaimType_Cant_Not_Update()
        {
            var phoneClaim = new IdentityClaimType(Guid.NewGuid(), "Phone", true, true);

            _identityClaimTypeRepository.Insert(phoneClaim);

            await Assert.ThrowsAnyAsync <AbpException>(async() => await _claimTypeManager.UpdateAsync(phoneClaim));
        }