12 references to IsInRoleAsync
Microsoft.AspNetCore.Identity.Specification.Tests (9)
IdentitySpecificationTestBase.cs (9)
376Assert.True(await manager.IsInRoleAsync(u, roleName)); 402Assert.True(await userManager.IsInRoleAsync(u, await roleManager.GetRoleNameAsync(r))); 435Assert.True(await userManager.IsInRoleAsync(user, await roleManager.GetRoleNameAsync(r))); 438Assert.False(await userManager.IsInRoleAsync(user, await roleManager.GetRoleNameAsync(roles[2]))); 462Assert.True(await userManager.IsInRoleAsync(u, roleName)); 467Assert.False(await userManager.IsInRoleAsync(u, roleName)); 507Assert.True(await userMgr.IsInRoleAsync(user, roleName)); 527Assert.False(await userMgr.IsInRoleAsync(user, roleName)); 529Assert.True(await userMgr.IsInRoleAsync(user, roleName));
Microsoft.AspNetCore.Identity.Test (3)
UserManagerTest.cs (3)
934await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.IsInRoleAsync(null, "bogus")); 1073async () => await manager.IsInRoleAsync(null, null)); 1161await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.IsInRoleAsync(null, null));