8 references to ReplaceClaimAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
164IdentityResultAssert.IsSuccess(await manager.ReplaceClaimAsync(user, oldClaim, claim));
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
776IdentityResultAssert.IsSuccess(await manager.ReplaceClaimAsync(user, oldClaim, claim)); 804IdentityResultAssert.IsSuccess(await manager.ReplaceClaimAsync(user, oldClaim, claim));
Microsoft.AspNetCore.Identity.Test (5)
UserManagerTest.cs (5)
611var result = await userManager.ReplaceClaimAsync(user, claim, newClaim); 1078await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.ReplaceClaimAsync(null, null, null)); 1362await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.ReplaceClaimAsync(null, null, null)); 1420async () => await manager.ReplaceClaimAsync(null, new Claim("a", "b"), new Claim("a", "c"))); 1518await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.ReplaceClaimAsync(null, null, null));