81 references to Success
Identity.DefaultUI.WebSite (3)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (3)
224return Task.FromResult(IdentityResult.Success); 230return Task.FromResult(IdentityResult.Success); 260return Task.FromResult(IdentityResult.Success);
Microsoft.AspNetCore.Identity (9)
SignInManager.cs (9)
407var incrementLockoutResult = await UserManager.AccessFailedAsync(user) ?? IdentityResult.Success; 556var incrementLockoutResult = await UserManager.AccessFailedAsync(user) ?? IdentityResult.Success; 603var incrementLockoutResult = await UserManager.AccessFailedAsync(user) ?? IdentityResult.Success; 747return IdentityResult.Success; 940var result = await UserManager.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success; 956return IdentityResult.Success; 959return await UserManager.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success; 968return await resultTask ?? IdentityResult.Success; 972return IdentityResult.Success;
Microsoft.AspNetCore.Identity.EntityFrameworkCore (9)
RoleStore.cs (3)
137return IdentityResult.Success; 162return IdentityResult.Success; 185return IdentityResult.Success;
UserOnlyStore.cs (3)
156return IdentityResult.Success; 182return IdentityResult.Success; 206return IdentityResult.Success;
UserStore.cs (3)
158return IdentityResult.Success; 184return IdentityResult.Success; 208return IdentityResult.Success;
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
50.Returns(Task.FromResult(IdentityResult.Success)).Verifiable();
Microsoft.AspNetCore.Identity.InMemory.Test (7)
InMemoryStore.cs (3)
75return Task.FromResult(IdentityResult.Success); 85return Task.FromResult(IdentityResult.Success); 107return Task.FromResult(IdentityResult.Success);
InMemoryUserStore.cs (3)
224return Task.FromResult(IdentityResult.Success); 230return Task.FromResult(IdentityResult.Success); 260return Task.FromResult(IdentityResult.Success);
src\Identity\test\Shared\MockHelpers.cs (1)
50.Returns(Task.FromResult(IdentityResult.Success)).Verifiable();
Microsoft.AspNetCore.Identity.Test (40)
NoopRoleStore.cs (3)
10return Task.FromResult(IdentityResult.Success); 15return Task.FromResult(IdentityResult.Success); 44return Task.FromResult(IdentityResult.Success);
NoopUserStore.cs (3)
25return Task.FromResult(IdentityResult.Success); 30return Task.FromResult(IdentityResult.Success); 49return Task.FromResult(IdentityResult.Success);
RoleManagerTest.cs (2)
17store.Setup(s => s.CreateAsync(role, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 37store.Setup(s => s.UpdateAsync(role, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable();
SignInManagerTest.cs (12)
173manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 222manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 245manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 363manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 440return Task.FromResult(IdentityResult.Success); 520manager.Setup(m => m.RedeemTwoFactorRecoveryCodeAsync(user, bypassCode)).ReturnsAsync(IdentityResult.Success).Verifiable(); 523manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 665manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 724return Task.FromResult(IdentityResult.Success); 884return Task.FromResult(IdentityResult.Success); 911return Task.FromResult(IdentityResult.Success); 1215new object[] { IdentityResult.Success, SignInResult.LockedOut },
src\Identity\test\Shared\MockHelpers.cs (1)
50.Returns(Task.FromResult(IdentityResult.Success)).Verifiable();
UserManagerTest.cs (19)
69store.Setup(s => s.CreateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 88store.Setup(s => s.CreateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 108store.Setup(s => s.CreateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 129store.Setup(s => s.DeleteAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 149store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 171store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 192store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).Returns(Task.FromResult(IdentityResult.Success)).Verifiable(); 352store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 390store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 453store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 510store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 531store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 553store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).Returns(Task.FromResult(IdentityResult.Success)).Verifiable(); 579store.Setup(x => x.UpdateAsync(It.IsAny<PocoUser>(), It.IsAny<CancellationToken>())).Returns(Task.FromResult(IdentityResult.Success)); 639store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 660store.Setup(s => s.UpdateAsync(user, CancellationToken.None)).ReturnsAsync(IdentityResult.Success).Verifiable(); 1329return Task.FromResult(IdentityResult.Success); 1334return Task.FromResult(IdentityResult.Success); 1339return Task.FromResult(IdentityResult.Success);
Microsoft.Extensions.Identity.Core (12)
PasswordValidator.cs (1)
79: IdentityResult.Success);
RoleManager.cs (3)
281return IdentityResult.Success; 392/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is 417return IdentityResult.Success;
RoleValidator.cs (1)
43return IdentityResult.Success;
UserManager.cs (6)
1847return IdentityResult.Success; 2231return IdentityResult.Success; 2294/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is 2327return IdentityResult.Success; 2331/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is 2363return IdentityResult.Success;
UserValidator.cs (1)
49return errors?.Count > 0 ? IdentityResult.Failed(errors) : IdentityResult.Success;