18 references to SetEmailAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreEncryptPersonalDataTest.cs (1)
78IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, "hao@hao.com"));
Microsoft.AspNetCore.Identity.Specification.Tests (15)
UserManagerSpecificationTests.cs (15)
309IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, newEmail)); 313IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail), _errorDescriber.DuplicateEmail(newEmail)); 314IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""), _errorDescriber.InvalidEmail("")); 860IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user2, await manager.GetEmailAsync(user))); 1102IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, null)); 1502IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1524IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1551IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1573IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1578IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, "another@email.com")); 1596IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1619IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1644IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, email)); 1821IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, "test@test.com")); 1827IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user, null));
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
896await Assert.ThrowsAsync<NotSupportedException>(() => manager.SetEmailAsync(null, null)); 1441async () => await manager.SetEmailAsync(null, null));