18 references to AddClaimAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
SqlStoreOnlyUsersTestBase.cs (1)
154
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, c));
SqlStoreTestBase.cs (1)
260
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, c));
UserStoreWithGenericsTest.cs (4)
105
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, c));
135
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, c));
136
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user2, c));
159
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, new Claim("c", "a", "i")));
Microsoft.AspNetCore.Identity.Specification.Tests (7)
UserManagerSpecificationTests.cs (7)
712
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, c));
743
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, c));
744
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user2, c));
771
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, new Claim("c", "a")));
796
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, new Claim("c", "a")));
797
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user2, new Claim("c", "a")));
1927
IdentityResultAssert.IsSuccess(await manager.
AddClaimAsync
(user, new Claim("foo", "bar")));
Microsoft.AspNetCore.Identity.Test (5)
UserManagerTest.cs (5)
579
var result = await userManager.
AddClaimAsync
(user, claim);
1078
await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.
AddClaimAsync
(null, null));
1362
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.
AddClaimAsync
(null, null));
1391
async () => await manager.
AddClaimAsync
(null, new Claim("a", "b")));
1495
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
AddClaimAsync
(null, null));