11 references to _errorDescriber
Microsoft.AspNetCore.Identity.Specification.Tests (11)
IdentitySpecificationTestBase.cs (2)
487
IdentityResultAssert.IsFailure(result,
_errorDescriber
.UserNotInRole(roleName));
508
IdentityResultAssert.IsFailure(await userMgr.AddToRoleAsync(user, roleName),
_errorDescriber
.UserAlreadyInRole(roleName));
UserManagerSpecificationTests.cs (9)
251
var error =
_errorDescriber
.InvalidUserName("");
255
error =
_errorDescriber
.DuplicateUserName(newUsername);
312
IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail),
_errorDescriber
.DuplicateEmail(newEmail));
313
IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""),
_errorDescriber
.InvalidEmail(""));
410
IdentityResultAssert.IsFailure(await manager.CreateAsync(user),
_errorDescriber
.InvalidEmail(email));
425
IdentityResultAssert.IsFailure(await manager.CreateAsync(user),
_errorDescriber
.InvalidEmail(email));
844
IdentityResultAssert.IsFailure(await manager.CreateAsync(user2),
_errorDescriber
.DuplicateUserName(username));
874
IdentityResultAssert.IsFailure(await manager.CreateAsync(user2),
_errorDescriber
.DuplicateEmail("FooUser@yup.com"));
905
IdentityResultAssert.IsFailure(result,
_errorDescriber
.LoginAlreadyAssociated());