8 references to GetRoleIdAsync
Microsoft.AspNetCore.Identity.Specification.Tests (5)
IdentitySpecificationTestBase.cs (5)
172
IdentityResultAssert.VerifyLogMessage(manager.Logger, $"Role {await manager.
GetRoleIdAsync
(role) ?? NullValue} validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
189
IdentityResultAssert.VerifyLogMessage(manager.Logger, $"Role {await manager.
GetRoleIdAsync
(role) ?? NullValue} validation failed: {AlwaysBadValidator.ErrorMessage.Code};{AlwaysBadValidator.ErrorMessage.Code}.");
207
IdentityResultAssert.VerifyLogMessage(manager.Logger, $"Role {await manager.
GetRoleIdAsync
(role) ?? NullValue} validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
275
Assert.Null(await manager.FindByIdAsync(await manager.
GetRoleIdAsync
(role)));
277
Assert.Equal(role, await manager.FindByIdAsync(await manager.
GetRoleIdAsync
(role)));
Microsoft.Extensions.Identity.Core (3)
RoleManager.cs (1)
413
Logger.LogWarning(LoggerEventIds.RoleValidationFailed, "Role {roleId} validation failed: {errors}.", await
GetRoleIdAsync
(role).ConfigureAwait(false), string.Join(";", errors.Select(e => e.Code)));
RoleValidator.cs (2)
59
!string.Equals(await manager.
GetRoleIdAsync
(owner).ConfigureAwait(false), await manager.
GetRoleIdAsync
(role).ConfigureAwait(false)))