301 references to IsSuccess
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (80)
DefaultPocoTest.cs (2)
53
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(user, password));
54
IdentityResultAssert.
IsSuccess
(await userManager.DeleteAsync(user));
SqlStoreOnlyUsersTestBase.cs (8)
109
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
110
IdentityResultAssert.
IsSuccess
(await userMgr.SetAuthenticationTokenAsync(user, "provider", "test", "value"));
114
IdentityResultAssert.
IsSuccess
(await userMgr.DeleteAsync(user));
137
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
138
IdentityResultAssert.
IsSuccess
(await manager.DeleteAsync(user));
145
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
146
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, new UserLoginInfo("provider", user.Id.ToString(), "display")));
154
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, c));
SqlStoreTestBase.cs (20)
164
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
166
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
167
IdentityResultAssert.
IsSuccess
(await userMgr.AddToRoleAsync(user, roleName));
170
IdentityResultAssert.
IsSuccess
(await roleMgr.DeleteAsync(role));
188
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
190
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
191
IdentityResultAssert.
IsSuccess
(await userMgr.AddToRoleAsync(user, roleName));
196
IdentityResultAssert.
IsSuccess
(await userMgr.DeleteAsync(user));
208
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
209
IdentityResultAssert.
IsSuccess
(await userMgr.SetAuthenticationTokenAsync(user, "provider", "test", "value"));
213
IdentityResultAssert.
IsSuccess
(await userMgr.DeleteAsync(user));
236
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
237
IdentityResultAssert.
IsSuccess
(await manager.DeleteAsync(user));
247
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
248
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, new UserLoginInfo("provider", user.Id.ToString(), "display")));
249
IdentityResultAssert.
IsSuccess
(await role.CreateAsync(admin));
250
IdentityResultAssert.
IsSuccess
(await role.CreateAsync(local));
251
IdentityResultAssert.
IsSuccess
(await manager.AddToRoleAsync(user, admin.Name));
252
IdentityResultAssert.
IsSuccess
(await manager.AddToRoleAsync(user, local.Name));
260
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, c));
UserOnlyCustomContextTest.cs (2)
98
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(user, password));
99
IdentityResultAssert.
IsSuccess
(await userManager.DeleteAsync(user));
UserOnlyTest.cs (4)
59
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(user, password));
60
IdentityResultAssert.
IsSuccess
(await userManager.DeleteAsync(user));
75
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(userA, password));
78
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(userB, password));
UserStoreEncryptPersonalDataTest.cs (10)
76
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
77
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, "hao@hao.com"));
80
IdentityResultAssert.
IsSuccess
(await manager.SetPhoneNumberAsync(user, "123-456-7890"));
82
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, login));
87
IdentityResultAssert.
IsSuccess
(await manager.SetUserNameAsync(user, newName));
88
IdentityResultAssert.
IsSuccess
(await manager.UpdateAsync(user));
205
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
213
IdentityResultAssert.
IsSuccess
(await manager.UpdateAsync(user));
215
IdentityResultAssert.
IsSuccess
(await manager.ResetAuthenticatorKeyAsync(user));
216
IdentityResultAssert.
IsSuccess
(await manager.SetAuthenticationTokenAsync(user, "loginProvider", "token", "value"));
UserStoreTest.cs (19)
168
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
169
IdentityResultAssert.
IsSuccess
(await manager.DeleteAsync(user));
177
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(userA, "password"));
179
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(userB, "password"));
190
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(userA, "password"));
193
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(userB, "password"));
203
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(u));
218
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
232
IdentityResultAssert.
IsSuccess
(await manager1.UpdateAsync(user1));
249
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
261
IdentityResultAssert.
IsSuccess
(await manager1.UpdateAsync(user));
278
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
291
IdentityResultAssert.
IsSuccess
(await manager1.UpdateAsync(user1));
308
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
322
IdentityResultAssert.
IsSuccess
(await manager1.UpdateAsync(role1));
339
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
352
IdentityResultAssert.
IsSuccess
(await manager1.UpdateAsync(role));
369
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
382
IdentityResultAssert.
IsSuccess
(await manager1.UpdateAsync(role1));
UserStoreWithGenericsTest.cs (15)
101
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
105
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, c));
113
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[0]));
116
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[1]));
119
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[2]));
130
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
131
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user2));
135
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, c));
136
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user2, c));
140
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[0]));
143
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[1]));
146
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[2]));
158
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
159
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, new Claim("c", "a", "i")));
164
IdentityResultAssert.
IsSuccess
(await manager.ReplaceClaimAsync(user, oldClaim, claim));
Microsoft.AspNetCore.Identity.InMemory.Test (4)
ControllerTest.cs (4)
51
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(user, password));
101
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(user));
102
IdentityResultAssert.
IsSuccess
(await userManager.AddLoginAsync(user, new UserLoginInfo(authScheme, externalId, "whatever")));
103
IdentityResultAssert.
IsSuccess
(await signInManager.UpdateExternalAuthenticationTokensAsync(externalLogin));
Microsoft.AspNetCore.Identity.Specification.Tests (210)
IdentitySpecificationTestBase.cs (45)
134
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
202
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
221
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
223
IdentityResultAssert.
IsSuccess
(await manager.DeleteAsync(role));
237
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
238
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(roleSafe));
242
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(role, c));
243
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(roleSafe, c));
249
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(role, claims[0]));
254
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(role, claims[1]));
259
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(role, claims[2]));
276
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
292
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
307
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
309
IdentityResultAssert.
IsSuccess
(await manager.SetRoleNameAsync(role, "Changed"));
310
IdentityResultAssert.
IsSuccess
(await manager.UpdateAsync(role));
328
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(r));
349
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(role));
367
IdentityResultAssert.
IsSuccess
(await roleManager.CreateAsync(role));
374
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(u));
375
IdentityResultAssert.
IsSuccess
(await manager.AddToRoleAsync(u, roleName));
394
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(u));
398
IdentityResultAssert.
IsSuccess
(await roleManager.CreateAsync(r));
401
IdentityResultAssert.
IsSuccess
(await userManager.AddToRoleAsync(u, await roleManager.GetRoleNameAsync(r)));
429
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(user));
433
IdentityResultAssert.
IsSuccess
(await roleManager.CreateAsync(r));
434
IdentityResultAssert.
IsSuccess
(await userManager.AddToRoleAsync(user, await roleManager.GetRoleNameAsync(r)));
437
IdentityResultAssert.
IsSuccess
(await userManager.RemoveFromRoleAsync(user, await roleManager.GetRoleNameAsync(roles[2])));
454
IdentityResultAssert.
IsSuccess
(await userManager.CreateAsync(u));
458
IdentityResultAssert.
IsSuccess
(await roleManager.CreateAsync(r));
461
IdentityResultAssert.
IsSuccess
(await userManager.AddToRoleAsync(u, roleName));
466
IdentityResultAssert.
IsSuccess
(await userManager.RemoveFromRoleAsync(u, roleName));
484
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
485
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
504
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
505
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
506
IdentityResultAssert.
IsSuccess
(await userMgr.AddToRoleAsync(user, roleName));
525
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
526
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
528
IdentityResultAssert.
IsSuccess
(await userMgr.AddToRolesAsync(user, new[] { roleName, roleName }));
542
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
556
IdentityResultAssert.
IsSuccess
(await roleMgr.CreateAsync(role));
575
IdentityResultAssert.
IsSuccess
(await roleManager.CreateAsync(role));
582
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
586
IdentityResultAssert.
IsSuccess
(await manager.AddToRolesAsync(user, roleNameList));
UserManagerSpecificationTests.cs (165)
179
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
194
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
207
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
209
IdentityResultAssert.
IsSuccess
(await manager.DeleteAsync(user));
223
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
226
IdentityResultAssert.
IsSuccess
(await manager.SetUserNameAsync(user, newName));
227
IdentityResultAssert.
IsSuccess
(await manager.UpdateAsync(user));
243
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
245
IdentityResultAssert.
IsSuccess
(await manager.SetUserNameAsync(user, newUsername));
250
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(newUser));
271
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
274
IdentityResultAssert.
IsSuccess
(await manager.SetUserNameAsync(user, newUsername));
288
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
290
IdentityResultAssert.
IsSuccess
(await manager.ResetAuthenticatorKeyAsync(user));
307
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
308
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, newEmail));
311
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(newUser));
325
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, "password"));
330
IdentityResultAssert.
IsSuccess
(await manager.UpdateAsync(user));
345
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
373
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
437
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
457
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
472
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, "password"));
505
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, password));
525
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, "password"));
557
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(CreateTestUser(username, useNamePrefixAsUserName: true)));
578
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
580
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, new UserLoginInfo(provider, providerKey, display)));
598
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
601
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, login));
603
IdentityResultAssert.
IsSuccess
(await manager.AddPasswordAsync(user, "password"));
621
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, "Password"));
641
IdentityResultAssert.
IsSuccess
(result);
642
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, login));
651
IdentityResultAssert.
IsSuccess
(await manager.RemoveLoginAsync(user, login.LoginProvider, login.ProviderKey));
669
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, password));
672
IdentityResultAssert.
IsSuccess
(await manager.RemovePasswordAsync(user));
690
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, password));
693
IdentityResultAssert.
IsSuccess
(await manager.ChangePasswordAsync(user, password, newPassword));
708
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
712
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, c));
717
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[0]));
720
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[1]));
723
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[2]));
738
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
739
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user2));
743
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, c));
744
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user2, c));
748
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[0]));
751
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[1]));
754
IdentityResultAssert.
IsSuccess
(await manager.RemoveClaimAsync(user, claims[2]));
770
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
771
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, new Claim("c", "a")));
776
IdentityResultAssert.
IsSuccess
(await manager.ReplaceClaimAsync(user, oldClaim, claim));
794
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
795
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user2));
796
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, new Claim("c", "a")));
797
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user2, new Claim("c", "a")));
804
IdentityResultAssert.
IsSuccess
(await manager.ReplaceClaimAsync(user, oldClaim, claim));
826
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, "password"));
843
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
857
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
858
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user2));
859
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user2, await manager.GetEmailAsync(user)));
873
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
886
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
888
IdentityResultAssert.
IsSuccess
(await manager.UpdateSecurityStampAsync(user));
902
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
903
IdentityResultAssert.
IsSuccess
(await manager.AddLoginAsync(user, login));
921
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
939
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(u));
955
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
995
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, password));
1001
IdentityResultAssert.
IsSuccess
(await manager.ResetPasswordAsync(user, token, newPassword));
1020
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, password));
1046
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, password));
1066
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1067
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user2));
1095
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1099
IdentityResultAssert.
IsSuccess
(await manager.ConfirmEmailAsync(user, token));
1101
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, null));
1117
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1133
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user, "password"));
1136
IdentityResultAssert.
IsSuccess
(await manager.ChangePasswordAsync(user, "password", "newpassword"));
1155
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1158
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1177
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1180
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1184
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1202
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1205
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1209
IdentityResultAssert.
IsSuccess
(await mgr.ResetAccessFailedCountAsync(user));
1213
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1231
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1233
IdentityResultAssert.
IsSuccess
(await mgr.SetLockoutEnabledAsync(user, true));
1236
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1240
IdentityResultAssert.
IsSuccess
(await mgr.AccessFailedAsync(user));
1256
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1258
IdentityResultAssert.
IsSuccess
(await mgr.SetLockoutEndDateAsync(user, new DateTimeOffset()));
1273
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1290
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1304
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1306
IdentityResultAssert.
IsSuccess
(await mgr.SetLockoutEndDateAsync(user, DateTimeOffset.UtcNow.AddSeconds(-1)));
1320
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1334
IdentityResultAssert.
IsSuccess
(await mgr.CreateAsync(user));
1337
IdentityResultAssert.
IsSuccess
(await mgr.SetLockoutEndDateAsync(user, lockoutEnd));
1352
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1355
IdentityResultAssert.
IsSuccess
(await manager.SetPhoneNumberAsync(user, "111-111-1111"));
1369
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1373
IdentityResultAssert.
IsSuccess
(await manager.ChangePhoneNumberAsync(user, "111-111-1111", token1));
1388
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1402
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1436
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1439
IdentityResultAssert.
IsSuccess
(await manager.ChangePhoneNumberAsync(user, "111-111-1111", "whatever"));
1454
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1474
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1499
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1501
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1506
IdentityResultAssert.
IsSuccess
(await manager.ChangeEmailAsync(user, newEmail, token1));
1521
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1523
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1529
IdentityResultAssert.
IsSuccess
(await manager.ChangeEmailAsync(user, newEmail, token1));
1548
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1550
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1555
IdentityResultAssert.
IsSuccess
(await manager.ChangeEmailAsync(user, newEmail, token1));
1570
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1572
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1577
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, "another@email.com"));
1593
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1595
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1616
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1618
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1641
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1643
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, email));
1645
IdentityResultAssert.
IsSuccess
(await manager.ConfirmEmailAsync(user, token));
1651
IdentityResultAssert.
IsSuccess
(await manager.UpdateSecurityStampAsync(user));
1655
IdentityResultAssert.
IsSuccess
(await manager.UpdateSecurityStampAsync(user));
1670
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1673
IdentityResultAssert.
IsSuccess
(await manager.SetTwoFactorEnabledAsync(user, true));
1687
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1712
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1727
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1729
IdentityResultAssert.
IsSuccess
(await manager.SetAuthenticationTokenAsync(user, "provider", "name", "value"));
1732
IdentityResultAssert.
IsSuccess
(await manager.SetAuthenticationTokenAsync(user, "provider", "name", "value2"));
1735
IdentityResultAssert.
IsSuccess
(await manager.RemoveAuthenticationTokenAsync(user, "whatevs", "name"));
1738
IdentityResultAssert.
IsSuccess
(await manager.RemoveAuthenticationTokenAsync(user, "provider", "name"));
1751
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1759
IdentityResultAssert.
IsSuccess
(await manager.RedeemTwoFactorRecoveryCodeAsync(user, code));
1779
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1794
IdentityResultAssert.
IsSuccess
(await manager.RedeemTwoFactorRecoveryCodeAsync(user, code));
1807
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1812
IdentityResultAssert.
IsSuccess
(await manager.SetPhoneNumberAsync(user, "111-111-1111"));
1814
IdentityResultAssert.
IsSuccess
(await manager.ChangePhoneNumberAsync(user, "111-111-1111", token));
1820
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, "test@test.com"));
1822
IdentityResultAssert.
IsSuccess
(await manager.ConfirmEmailAsync(user, token));
1826
IdentityResultAssert.
IsSuccess
(await manager.SetEmailAsync(user, null));
1831
IdentityResultAssert.
IsSuccess
(await manager.ResetAuthenticatorKeyAsync(user));
1848
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1853
IdentityResultAssert.
IsSuccess
(await manager.UpdateSecurityStampAsync(user));
1867
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1883
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1897
IdentityResultAssert.
IsSuccess
(await userMgr.CreateAsync(user));
1923
IdentityResultAssert.
IsSuccess
(await manager.CreateAsync(user));
1927
IdentityResultAssert.
IsSuccess
(await manager.AddClaimAsync(user, new Claim("foo", "bar")));
Microsoft.AspNetCore.Identity.Test (7)
PasswordValidatorTest.cs (4)
58
IdentityResultAssert.
IsSuccess
(await valid.ValidateAsync(manager, null, input));
90
IdentityResultAssert.
IsSuccess
(await valid.ValidateAsync(manager, null, input));
128
IdentityResultAssert.
IsSuccess
(await valid.ValidateAsync(manager, null, input));
171
IdentityResultAssert.
IsSuccess
(result);
UserManagerTest.cs (1)
1012
IdentityResultAssert.
IsSuccess
(await manager.ResetAccessFailedCountAsync(user));
UserValidatorTest.cs (2)
59
IdentityResultAssert.
IsSuccess
(result);
87
IdentityResultAssert.
IsSuccess
(result);