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