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