Base:
method
IsInRoleAsync
Microsoft.AspNetCore.Identity.UserStoreBase<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken, TRoleClaim>.IsInRoleAsync(TUser, System.String, System.Threading.CancellationToken)
4 references to IsInRoleAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (4)
UserStoreTest.cs (4)
74
await Assert.ThrowsAsync<ObjectDisposedException>(async () => await store.
IsInRoleAsync
(null, null));
120
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.
IsInRoleAsync
(null, null));
156
await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.
IsInRoleAsync
(new IdentityUser("fake"), null));
159
await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.
IsInRoleAsync
(new IdentityUser("fake"), ""));