38 references to CreateAsync
Identity.ExternalClaims (1)
Pages\Account\Register.cshtml.cs (1)
72var result = await _userManager.CreateAsync(user, Input.Password);
IdentitySample.DefaultUI (1)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
90var result = await _userManager.CreateAsync(user, Input.Password);
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)
177IdentityResultAssert.IsSuccess(await manager.CreateAsync(userA, "password")); 179IdentityResultAssert.IsSuccess(await manager.CreateAsync(userB, "password")); 190IdentityResultAssert.IsSuccess(await manager.CreateAsync(userA, "password")); 193IdentityResultAssert.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)
325IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 472IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 489IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password")); 505IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 525IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 544IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage); 621IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "Password")); 669IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 690IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 826IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password")); 995IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 1020IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 1046IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, password)); 1133IdentityResultAssert.IsSuccess(await manager.CreateAsync(user, "password"));
Microsoft.AspNetCore.Identity.Test (6)
UserManagerTest.cs (6)
724await Assert.ThrowsAsync<NotSupportedException>(() => manager.CreateAsync(null, null)); 988IdentityResultAssert.IsFailure(await manager.CreateAsync(new PocoUser(), "password"), 998IdentityResultAssert.IsFailure(await manager.CreateAsync(new PocoUser(), "password")); 1024await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null, null)); 1027async () => await manager.CreateAsync(new PocoUser(), null)); 1172await 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);