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