39 references to GetClaimsAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (19)
SqlStoreOnlyUsersTestBase.cs (4)
169
Assert.Equal(2, (await manager.
GetClaimsAsync
(userById)).Count);
184
Assert.Equal(2, (await manager.
GetClaimsAsync
(userByName)).Count);
199
Assert.Equal(2, (await manager.
GetClaimsAsync
(userByLogin)).Count);
215
Assert.Equal(2, (await manager.
GetClaimsAsync
(userByEmail)).Count);
SqlStoreTestBase.cs (4)
275
Assert.Equal(2, (await manager.
GetClaimsAsync
(userById)).Count);
290
Assert.Equal(2, (await manager.
GetClaimsAsync
(userByName)).Count);
305
Assert.Equal(2, (await manager.
GetClaimsAsync
(userByLogin)).Count);
332
Assert.Equal(2, (await manager.
GetClaimsAsync
(userByEmail)).Count);
UserStoreWithGenericsTest.cs (11)
109
var userClaims = await manager.
GetClaimsAsync
(user);
114
userClaims = await manager.
GetClaimsAsync
(user);
117
userClaims = await manager.
GetClaimsAsync
(user);
120
userClaims = await manager.
GetClaimsAsync
(user);
138
var userClaims = await manager.
GetClaimsAsync
(user);
141
userClaims = await manager.
GetClaimsAsync
(user);
144
userClaims = await manager.
GetClaimsAsync
(user);
147
userClaims = await manager.
GetClaimsAsync
(user);
149
var userClaims2 = await manager.
GetClaimsAsync
(user2);
160
var userClaims = await manager.
GetClaimsAsync
(user);
165
var newUserClaims = await manager.
GetClaimsAsync
(user);
Microsoft.AspNetCore.Identity.Specification.Tests (15)
UserManagerSpecificationTests.cs (15)
715
var userClaims = await manager.
GetClaimsAsync
(user);
718
userClaims = await manager.
GetClaimsAsync
(user);
721
userClaims = await manager.
GetClaimsAsync
(user);
724
userClaims = await manager.
GetClaimsAsync
(user);
746
var userClaims = await manager.
GetClaimsAsync
(user);
749
userClaims = await manager.
GetClaimsAsync
(user);
752
userClaims = await manager.
GetClaimsAsync
(user);
755
userClaims = await manager.
GetClaimsAsync
(user);
757
var userClaims2 = await manager.
GetClaimsAsync
(user2);
772
var userClaims = await manager.
GetClaimsAsync
(user);
777
var newUserClaims = await manager.
GetClaimsAsync
(user);
798
var userClaims = await manager.
GetClaimsAsync
(user);
800
var userClaims2 = await manager.
GetClaimsAsync
(user);
805
var newUserClaims = await manager.
GetClaimsAsync
(user);
810
userClaims2 = await manager.
GetClaimsAsync
(user2);
Microsoft.AspNetCore.Identity.Test (4)
UserClaimsPrincipalFactoryTest.cs (1)
64
userManager.Setup(m => m.
GetClaimsAsync
(user)).ReturnsAsync(userClaims);
UserManagerTest.cs (3)
766
await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.
GetClaimsAsync
(null));
1067
async () => await manager.
GetClaimsAsync
(null));
1158
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
GetClaimsAsync
(null));
Microsoft.Extensions.Identity.Core (1)
UserClaimsPrincipalFactory.cs (1)
95
id.AddClaims(await UserManager.
GetClaimsAsync
(user).ConfigureAwait(false));