34 references to IsFailure
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
UserStoreTest.cs (6)
233IdentityResultAssert.IsFailure(await manager2.UpdateAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 262IdentityResultAssert.IsFailure(await manager2.UpdateAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 292IdentityResultAssert.IsFailure(await manager2.DeleteAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 323IdentityResultAssert.IsFailure(await manager2.UpdateAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure()); 353IdentityResultAssert.IsFailure(await manager2.UpdateAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure()); 383IdentityResultAssert.IsFailure(await manager2.DeleteAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure());
Microsoft.AspNetCore.Identity.Specification.Tests (22)
IdentitySpecificationTestBase.cs (5)
170IdentityResultAssert.IsFailure(await manager.CreateAsync(role), 188IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage); 206IdentityResultAssert.IsFailure(await manager.UpdateAsync(role), error); 487IdentityResultAssert.IsFailure(result, _errorDescriber.UserNotInRole(roleName)); 508IdentityResultAssert.IsFailure(await userMgr.AddToRoleAsync(user, roleName), _errorDescriber.UserAlreadyInRole(roleName));
UserManagerSpecificationTests.cs (17)
252IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, ""), error); 256IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, newUsername), error); 312IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail), _errorDescriber.DuplicateEmail(newEmail)); 313IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""), _errorDescriber.InvalidEmail("")); 360IdentityResultAssert.IsFailure(await manager.CreateAsync(user), AlwaysBadValidator.ErrorMessage); 376IdentityResultAssert.IsFailure(await manager.UpdateAsync(user), AlwaysBadValidator.ErrorMessage); 393IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage); 410IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email)); 425IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email)); 440IdentityResultAssert.IsFailure(await manager.AddPasswordAsync(user, "password"), 459IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage); 528IdentityResultAssert.IsFailure(await manager.ChangePasswordAsync(user, "password", "new"), 544IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage); 844IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateUserName(username)); 874IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateEmail("FooUser@yup.com")); 905IdentityResultAssert.IsFailure(result, _errorDescriber.LoginAlreadyAssociated()); 1026IdentityResultAssert.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)
432IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().UserAlreadyInRole("B")); 496IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().UserNotInRole("B")); 988IdentityResultAssert.IsFailure(await manager.CreateAsync(new PocoUser(), "password"), 1773IdentityResultAssert.IsFailure(await manager.CreateAsync(user), describer.DuplicateEmail(user.Email));
UserValidatorTest.cs (1)
35IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().InvalidUserName(input));