18 references to ErrorMessage
Microsoft.AspNetCore.Identity.Specification.Tests (18)
UserManagerSpecificationTests.cs (18)
147return Task.FromResult(IdentityResult.Failed(ErrorMessage));
152return Task.FromResult(IdentityResult.Failed(ErrorMessage));
360IdentityResultAssert.IsFailure(await manager.CreateAsync(user), AlwaysBadValidator.ErrorMessage);
361IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
376IdentityResultAssert.IsFailure(await manager.UpdateAsync(user), AlwaysBadValidator.ErrorMessage);
377IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
393IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage);
394IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User validation failed: {AlwaysBadValidator.ErrorMessage.Code};{AlwaysBadValidator.ErrorMessage.Code}.");
441AlwaysBadValidator.ErrorMessage);
442IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User password validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
459IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage);
529AlwaysBadValidator.ErrorMessage);
530IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User password validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
544IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage);
545IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User password validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");
1027AlwaysBadValidator.ErrorMessage);
1028IdentityResultAssert.VerifyLogMessage(manager.Logger, $"User password validation failed: {AlwaysBadValidator.ErrorMessage.Code}.");