34 references to CreateAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (7)
SqlStoreTestBase.cs (4)
164
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
188
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
249
IdentityResultAssert.IsSuccess(await role.
CreateAsync
(admin));
250
IdentityResultAssert.IsSuccess(await role.
CreateAsync
(local));
UserStoreTest.cs (3)
308
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
339
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
369
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
316
result = await roleManager.
CreateAsync
(new PocoRole("role"));
Microsoft.AspNetCore.Identity.Specification.Tests (23)
IdentitySpecificationTestBase.cs (23)
134
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
170
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(role),
187
var result = await manager.
CreateAsync
(role);
202
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
221
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
237
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
238
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(roleSafe));
276
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
292
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
307
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
328
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(r));
349
IdentityResultAssert.IsSuccess(await manager.
CreateAsync
(role));
352
IdentityResultAssert.IsFailure(await manager.
CreateAsync
(role2));
367
IdentityResultAssert.IsSuccess(await roleManager.
CreateAsync
(role));
398
IdentityResultAssert.IsSuccess(await roleManager.
CreateAsync
(r));
433
IdentityResultAssert.IsSuccess(await roleManager.
CreateAsync
(r));
458
IdentityResultAssert.IsSuccess(await roleManager.
CreateAsync
(r));
485
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
505
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
526
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
542
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
556
IdentityResultAssert.IsSuccess(await roleMgr.
CreateAsync
(role));
575
IdentityResultAssert.IsSuccess(await roleManager.
CreateAsync
(role));
Microsoft.AspNetCore.Identity.Test (3)
RoleManagerTest.cs (3)
23
var result = await roleManager.
CreateAsync
(role);
126
await Assert.ThrowsAsync<ArgumentNullException>("role", async () => await manager.
CreateAsync
(null));
141
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
CreateAsync
(null));