120 references to CreateAsync
Identity.ExternalClaims (1)
Pages\Account\ExternalLogin.cshtml.cs (1)
120
var result = await _userManager.
CreateAsync
(user);
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
212
var result = await _userManager.
CreateAsync
(user);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (20)
SqlStoreOnlyUsersTestBase.cs (3)
109
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
137
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
145
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
SqlStoreTestBase.cs (6)
166
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
190
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
208
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
236
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
247
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
315
var result = await manager.
CreateAsync
(user);
UserStoreEncryptPersonalDataTest.cs (2)
76
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
205
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
UserStoreTest.cs (5)
168
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
203
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(u));
218
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
249
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
278
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
UserStoreWithGenericsTest.cs (4)
101
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
130
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
131
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user2));
158
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
ControllerTest.cs (1)
101
IdentityResultAssert.IsSuccess(await userManager.
CreateAsync
(user));
Microsoft.AspNetCore.Identity.Specification.Tests (87)
IdentitySpecificationTestBase.cs (8)
374
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(u));
394
IdentityResultAssert.IsSuccess(await userManager.
CreateAsync
(u));
429
IdentityResultAssert.IsSuccess(await userManager.
CreateAsync
(user));
454
IdentityResultAssert.IsSuccess(await userManager.
CreateAsync
(u));
484
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
504
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
525
IdentityResultAssert.IsSuccess(await userMgr.
CreateAsync
(user));
582
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
UserManagerSpecificationTests.cs (79)
179
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
194
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
207
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
223
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
243
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
250
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(newUser));
271
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
288
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
307
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
311
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(newUser));
345
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
360
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(user), AlwaysBadValidator.ErrorMessage);
373
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
392
var result = await manager.
CreateAsync
(user);
410
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(user), _errorDescriber.InvalidEmail(email));
425
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(user), _errorDescriber.InvalidEmail(email));
437
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
457
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
557
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(CreateTestUser(username, useNamePrefixAsUserName: true)));
578
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
598
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
637
var result = await manager.
CreateAsync
(user);
708
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
738
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
739
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user2));
770
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
794
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
795
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user2));
843
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
844
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(user2), _errorDescriber.DuplicateUserName(username));
857
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
858
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user2));
873
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
874
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(user2), _errorDescriber.DuplicateEmail("FooUser@yup.com"));
886
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
902
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
921
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
939
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(u));
955
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1066
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1067
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user2));
1095
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1117
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1155
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1177
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1202
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1231
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1256
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1273
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1290
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1304
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1320
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1334
IdentityResultAssert.IsSuccess(await mgr.
CreateAsync
(user));
1352
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1369
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1388
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1402
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1436
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1454
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1474
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1499
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1521
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1548
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1570
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1593
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1616
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1641
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1670
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1687
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1712
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1727
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1751
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1779
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1807
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(user));
1848
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(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));
Microsoft.AspNetCore.Identity.Test (7)
UserManagerTest.cs (7)
75
var result = await userManager.
CreateAsync
(user);
94
var result = await userManager.
CreateAsync
(user);
116
var result = await userManager.
CreateAsync
(user);
606
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => manager.
CreateAsync
(user));
1023
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.
CreateAsync
(null));
1171
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
CreateAsync
(null));
1773
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(user), describer.DuplicateEmail(user.Email));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
188
var result = await _userManager.
CreateAsync
(user);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
188
var result = await _userManager.
CreateAsync
(user);
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
582
return await
CreateAsync
(user).ConfigureAwait(false);