19 references to SetEmailAsync
Identity.ExternalClaims (1)
Pages\Account\Manage\Index.cshtml.cs (1)
91var setEmailResult = await _userManager.SetEmailAsync(user, Input.Email);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreEncryptPersonalDataTest.cs (1)
77IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, "hao@hao.com"));
Microsoft.AspNetCore.Identity.Specification.Tests (15)
UserManagerSpecificationTests.cs (15)
308IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, newEmail)); 312IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail), _errorDescriber.DuplicateEmail(newEmail)); 313IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""), _errorDescriber.InvalidEmail("")); 859IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user2, await manager.GetEmailAsync(user))); 1101IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, null)); 1501IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1523IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1550IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1572IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1577IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, "another@email.com")); 1595IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1618IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1643IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1820IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, "test@test.com")); 1826IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, null));
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
692await Assert.ThrowsAsync<NotSupportedException>(() => manager.SetEmailAsync(null, null)); 1105async () => await manager.SetEmailAsync(null, null));