34 references to IsFailure
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
UserStoreTest.cs (6)
241IdentityResultAssert.IsFailure(await manager2.UpdateAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 270IdentityResultAssert.IsFailure(await manager2.UpdateAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 300IdentityResultAssert.IsFailure(await manager2.DeleteAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 331IdentityResultAssert.IsFailure(await manager2.UpdateAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure()); 361IdentityResultAssert.IsFailure(await manager2.UpdateAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure()); 391IdentityResultAssert.IsFailure(await manager2.DeleteAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure());
Microsoft.AspNetCore.Identity.Specification.Tests (22)
IdentitySpecificationTestBase.cs (5)
171IdentityResultAssert.IsFailure(await manager.CreateAsync(role), 189IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage); 207IdentityResultAssert.IsFailure(await manager.UpdateAsync(role), error); 488IdentityResultAssert.IsFailure(result, _errorDescriber.UserNotInRole(roleName)); 509IdentityResultAssert.IsFailure(await userMgr.AddToRoleAsync(user, roleName), _errorDescriber.UserAlreadyInRole(roleName));
UserManagerSpecificationTests.cs (17)
253IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, ""), error); 257IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, newUsername), error); 313IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail), _errorDescriber.DuplicateEmail(newEmail)); 314IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""), _errorDescriber.InvalidEmail("")); 361IdentityResultAssert.IsFailure(await manager.CreateAsync(user), AlwaysBadValidator.ErrorMessage); 377IdentityResultAssert.IsFailure(await manager.UpdateAsync(user), AlwaysBadValidator.ErrorMessage); 394IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage); 411IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email)); 426IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email)); 441IdentityResultAssert.IsFailure(await manager.AddPasswordAsync(user, "password"), 460IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage); 529IdentityResultAssert.IsFailure(await manager.ChangePasswordAsync(user, "password", "new"), 545IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage); 845IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateUserName(username)); 875IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateEmail("FooUser@yup.com")); 906IdentityResultAssert.IsFailure(result, _errorDescriber.LoginAlreadyAssociated()); 1027IdentityResultAssert.IsFailure(await manager.ResetPasswordAsync(user, token, newPassword),
Microsoft.AspNetCore.Identity.Test (6)
RoleValidatorTest.cs (1)
35IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().InvalidRoleName(input));
UserManagerTest.cs (4)
473IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().UserAlreadyInRole("B")); 537IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().UserNotInRole("B")); 1320IdentityResultAssert.IsFailure(await manager.CreateAsync(new PocoUser(), "password"), 2174IdentityResultAssert.IsFailure(await manager.CreateAsync(user), describer.DuplicateEmail(user.Email));
UserValidatorTest.cs (1)
35IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().InvalidUserName(input));