Browse Source

Update IdentityClaimTypeManager_Tests.cs

pull/22406/head
liangshiwei 11 months ago
parent
commit
750574ad99
  1. 4
      modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/IdentityClaimTypeManager_Tests.cs

4
modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/IdentityClaimTypeManager_Tests.cs

@ -53,7 +53,7 @@ public class IdentityClaimTypeManager_Tests : AbpIdentityDomainTestBase
[Fact]
public async Task Update_Name_Exist_Should_Exception()
{
await Assert.ThrowsAnyAsync<AbpException>(async () => await _claimTypeManager.UpdateAsync(
await Assert.ThrowsAnyAsync<BusinessException>(async () => await _claimTypeManager.UpdateAsync(
new IdentityClaimType(
Guid.NewGuid(), "Age")));
}
@ -65,6 +65,6 @@ public class IdentityClaimTypeManager_Tests : AbpIdentityDomainTestBase
var phoneClaim = new IdentityClaimType(Guid.NewGuid(), "Phone", true, true);
await _identityClaimTypeRepository.InsertAsync(phoneClaim);
await Assert.ThrowsAnyAsync<AbpException>(async () => await _claimTypeManager.UpdateAsync(phoneClaim));
await Assert.ThrowsAnyAsync<BusinessException>(async () => await _claimTypeManager.UpdateAsync(phoneClaim));
}
}

Loading…
Cancel
Save