19 references to AddClaimAsync
Identity.ExternalClaims (1)
Pages\Account\ExternalLogin.cshtml.cs (1)
127await _userManager.AddClaimAsync(user, info.Principal.FindFirst(ClaimTypes.Gender));
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
SqlStoreOnlyUsersTestBase.cs (1)
154IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, c));
SqlStoreTestBase.cs (1)
260IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, c));
UserStoreWithGenericsTest.cs (4)
105IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, c)); 135IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, c)); 136IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user2, c)); 159IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, new Claim("c", "a", "i")));
Microsoft.AspNetCore.Identity.Specification.Tests (7)
UserManagerSpecificationTests.cs (7)
712IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, c)); 743IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, c)); 744IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user2, c)); 771IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, new Claim("c", "a"))); 796IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, new Claim("c", "a"))); 797IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user2, new Claim("c", "a"))); 1927IdentityResultAssert.IsSuccess(await manager.AddClaimAsync(user, new Claim("foo", "bar")));
Microsoft.AspNetCore.Identity.Test (5)
UserManagerTest.cs (5)
535var result = await userManager.AddClaimAsync(user, claim); 763await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddClaimAsync(null, null)); 1030await Assert.ThrowsAsync<ArgumentNullException>("claim", async () => await manager.AddClaimAsync(null, null)); 1055async () => await manager.AddClaimAsync(null, new Claim("a", "b"))); 1151await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.AddClaimAsync(null, null));