6 references to RemoveFromRoleAsync
Microsoft.AspNetCore.Identity.Specification.Tests (3)
IdentitySpecificationTestBase.cs (3)
437
IdentityResultAssert.IsSuccess(await userManager.
RemoveFromRoleAsync
(user, await roleManager.GetRoleNameAsync(roles[2])));
466
IdentityResultAssert.IsSuccess(await userManager.
RemoveFromRoleAsync
(u, roleName));
486
var result = await userMgr.
RemoveFromRoleAsync
(user, roleName);
Microsoft.AspNetCore.Identity.Test (3)
UserManagerTest.cs (3)
932
await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.
RemoveFromRoleAsync
(null, "bogus"));
1081
async () => await manager.
RemoveFromRoleAsync
(null, null));
1166
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
RemoveFromRoleAsync
(null, null));