11 references to SetUserNameAsync
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
175result = await userManager.SetUserNameAsync(user, changedEmail);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreEncryptPersonalDataTest.cs (1)
87IdentityResultAssert.IsSuccess(await manager.SetUserNameAsync(user, newName));
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
226IdentityResultAssert.IsSuccess(await manager.SetUserNameAsync(user, newName)); 245IdentityResultAssert.IsSuccess(await manager.SetUserNameAsync(user, newUsername)); 252IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, ""), error); 256IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, newUsername), error); 274IdentityResultAssert.IsSuccess(await manager.SetUserNameAsync(user, newUsername));
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
196var result = await userManager.SetUserNameAsync(user, "foo"); 1053async () => await manager.SetUserNameAsync(null, "bogus"));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (1)
68var setUserNameResult = await _userManager.SetUserNameAsync(user, email);
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (1)
68var setUserNameResult = await _userManager.SetUserNameAsync(user, email);