13 references to GetRoleNameAsync
Microsoft.AspNetCore.Identity.Specification.Tests (11)
IdentitySpecificationTestBase.cs (11)
401
IdentityResultAssert.IsSuccess(await userManager.AddToRoleAsync(u, await roleManager.
GetRoleNameAsync
(r)));
402
Assert.True(await userManager.IsInRoleAsync(u, await roleManager.
GetRoleNameAsync
(r)));
412
var expectedRoleName = await roleManager.
GetRoleNameAsync
(r);
434
IdentityResultAssert.IsSuccess(await userManager.AddToRoleAsync(user, await roleManager.
GetRoleNameAsync
(r)));
435
Assert.True(await userManager.IsInRoleAsync(user, await roleManager.
GetRoleNameAsync
(r)));
437
IdentityResultAssert.IsSuccess(await userManager.RemoveFromRoleAsync(user, await roleManager.
GetRoleNameAsync
(roles[2])));
438
Assert.False(await userManager.IsInRoleAsync(user, await roleManager.
GetRoleNameAsync
(roles[2])));
457
var roleName = await roleManager.
GetRoleNameAsync
(r);
557
Assert.Equal(roleName, await roleMgr.
GetRoleNameAsync
(await roleMgr.FindByNameAsync(roleName)));
576
roleNameList.Add(await roleManager.
GetRoleNameAsync
(role));
592
Assert.Equal(3, (await manager.GetUsersInRoleAsync(await roleManager.
GetRoleNameAsync
(role))).Count);
Microsoft.Extensions.Identity.Core (2)
RoleManager.cs (1)
178
var name = await
GetRoleNameAsync
(role).ConfigureAwait(false);
RoleValidator.cs (1)
49
var roleName = await manager.
GetRoleNameAsync
(role).ConfigureAwait(false);