18 references to GetRolesAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (12)
SqlStoreOnlyUsersTestBase.cs (4)
171
Assert.Equal(2, (await manager.
GetRolesAsync
(userById)).Count);
186
Assert.Equal(2, (await manager.
GetRolesAsync
(userByName)).Count);
201
Assert.Equal(2, (await manager.
GetRolesAsync
(userByLogin)).Count);
217
Assert.Equal(2, (await manager.
GetRolesAsync
(userByEmail)).Count);
SqlStoreTestBase.cs (8)
168
var roles = await userMgr.
GetRolesAsync
(user);
174
roles = await userMgr.
GetRolesAsync
(user);
193
var roles = await userMgr.
GetRolesAsync
(user);
198
roles = await userMgr.
GetRolesAsync
(user);
277
Assert.Equal(2, (await manager.
GetRolesAsync
(userById)).Count);
292
Assert.Equal(2, (await manager.
GetRolesAsync
(userByName)).Count);
307
Assert.Equal(2, (await manager.
GetRolesAsync
(userByLogin)).Count);
334
Assert.Equal(2, (await manager.
GetRolesAsync
(userByEmail)).Count);
Microsoft.AspNetCore.Identity.Specification.Tests (1)
IdentitySpecificationTestBase.cs (1)
408
var rs = await userManager.
GetRolesAsync
(u);
Microsoft.AspNetCore.Identity.Test (4)
UserClaimsPrincipalFactoryTest.cs (1)
58
userManager.Setup(m => m.
GetRolesAsync
(user)).ReturnsAsync(roleClaims);
UserManagerTest.cs (3)
931
await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.
GetRolesAsync
(null));
1071
async () => await manager.
GetRolesAsync
(null));
1160
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
GetRolesAsync
(null));
Microsoft.Extensions.Identity.Core (1)
UserClaimsPrincipalFactory.cs (1)
141
var roles = await UserManager.
GetRolesAsync
(user).ConfigureAwait(false);