36 references to CreateAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
107var result = await _userManager.CreateAsync(user, model.Password);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
79var result = await userManager.CreateAsync(user, registration.Password);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
DefaultPocoTest.cs (1)
53IdentityResultAssert.IsSuccess(await userManager.CreateAsync(user, password));
UserOnlyCustomContextTest.cs (1)
98IdentityResultAssert.IsSuccess(await userManager.CreateAsync(user, password));
UserOnlyTest.cs (3)
59IdentityResultAssert.IsSuccess(await userManager.CreateAsync(user, password)); 75IdentityResultAssert.IsSuccess(await manager.CreateAsync(userA, password)); 78IdentityResultAssert.IsSuccess(await manager.CreateAsync(userB, password));
UserStoreTest.cs (4)
186IdentityResultAssert.IsSuccess(await manager.CreateAsync(userA, "password")); 188IdentityResultAssert.IsSuccess(await manager.CreateAsync(userB, "password")); 199IdentityResultAssert.IsSuccess(await manager.CreateAsync(userA, "password")); 202IdentityResultAssert.IsSuccess(await manager.CreateAsync(userB, "password"));
Microsoft.AspNetCore.Identity.InMemory.Test (3)
ControllerTest.cs (1)
51IdentityResultAssert.IsSuccess(await userManager.CreateAsync(user, password));
FunctionalTest.cs (2)
313var result = await userManager.CreateAsync(user, TestPassword); 326var result = await userManager.CreateAsync(new PocoUser("simple"), "aaaaaa");
Microsoft.AspNetCore.Identity.Specification.Tests (14)
UserManagerSpecificationTests.cs (14)
326IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 473IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 490IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password")); 506IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 526IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 545IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage); 622IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "Password")); 670IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 691IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 827IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 996IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 1021IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 1047IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 1134IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password"));
Microsoft.AspNetCore.Identity.Test (6)
UserManagerTest.cs (6)
977await Assert.ThrowsAsync<NotSupportedException>(() => manager.CreateAsync(null, null)); 1320IdentityResultAssert.IsFailure(await manager.CreateAsync(new PocoUser(), "password"), 1330IdentityResultAssert.IsFailure(await manager.CreateAsync(new PocoUser(), "password")); 1356await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null, null)); 1359async () => await manager.CreateAsync(new PocoUser(), null)); 1516await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.CreateAsync(null, null));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
133var result = await _userManager.CreateAsync(user, Input.Password);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
133var result = await _userManager.CreateAsync(user, Input.Password);