2 implementations of NormalizeEmail
Microsoft.AspNetCore.Identity.Test (1)
UserManagerTest.cs (1)
295public string NormalizeEmail(string key) => "@" + key;
Microsoft.Extensions.Identity.Core (1)
UpperInvariantLookupNormalizer.cs (1)
34public string? NormalizeEmail(string? email) => NormalizeName(email);
7 references to NormalizeEmail
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
80lookupNormalizer.Setup(i => i.NormalizeEmail(It.IsAny<string>())).Returns(normalizerFunc);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
80lookupNormalizer.Setup(i => i.NormalizeEmail(It.IsAny<string>())).Returns(normalizerFunc);
Microsoft.AspNetCore.Identity.Test (4)
src\Identity\test\Shared\MockHelpers.cs (1)
80lookupNormalizer.Setup(i => i.NormalizeEmail(It.IsAny<string>())).Returns(normalizerFunc);
UserManagerTest.cs (3)
111store.Setup(s => s.SetNormalizedEmailAsync(user, normalizer.NormalizeEmail(user.Email), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable(); 170store.Setup(s => s.SetNormalizedEmailAsync(user, normalizer.NormalizeEmail(user.Email), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable(); 263store.Setup(s => s.FindByEmailAsync(normalizer.NormalizeEmail(user.Email), CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
601=> (KeyNormalizer == null) ? email : KeyNormalizer.NormalizeEmail(email);