9 writes to Email
Microsoft.AspNetCore.Identity.Test (9)
UserClaimsPrincipalFactoryTest.cs (1)
45
var user = new PocoUser { UserName = "Foo",
Email
= "foo@bar.com" };
UserManagerTest.cs (8)
107
var user = new PocoUser { UserName = "Foo",
Email
= "Foo@foo.com" };
166
var user = new PocoUser { UserName = "Foo",
Email
= "email" };
262
var user = new PocoUser {
Email
= "Foo" };
279
var user = new PocoUser {
Email
= "Foo" };
303
var user = new PocoUser {
Email
= "Foo" };
321
var user = new PocoUser { UserName = "Foo",
Email
= "Bar" };
1757
var user = new PocoUser() { UserName = "dupeEmail",
Email
= "dupe@email.com" };
1758
var user2 = new PocoUser() { UserName = "dupeEmail2",
Email
= "dupe@email.com" };
13 references to Email
Microsoft.AspNetCore.Identity.Test (13)
UserClaimsPrincipalFactoryTest.cs (2)
53
userManager.Setup(m => m.GetEmailAsync(user)).ReturnsAsync(user.
Email
);
99
Assert.Equal(supportsUserEmail, claims.Any(c => c.Type == manager.Options.ClaimsIdentity.EmailClaimType && c.Value == user.
Email
));
UserManagerTest.cs (11)
110
store.Setup(s => s.GetEmailAsync(user, CancellationToken.None)).Returns(Task.FromResult(user.
Email
)).Verifiable();
111
store.Setup(s => s.SetNormalizedEmailAsync(user, normalizer.NormalizeEmail(user.
Email
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
168
store.Setup(s => s.GetEmailAsync(user, CancellationToken.None)).Returns(Task.FromResult(user.
Email
)).Verifiable();
170
store.Setup(s => s.SetNormalizedEmailAsync(user, normalizer.NormalizeEmail(user.
Email
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
263
store.Setup(s => s.FindByEmailAsync(normalizer.NormalizeEmail(user.
Email
), CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
267
var result = await userManager.FindByEmailAsync(user.
Email
);
280
store.Setup(s => s.FindByEmailAsync(user.
Email
, CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
285
var result = await userManager.FindByEmailAsync(user.
Email
);
309
var result = await userManager.FindByEmailAsync(user.
Email
);
1769
.Returns(Task.FromResult(user.
Email
))
1773
IdentityResultAssert.IsFailure(await manager.CreateAsync(user), describer.DuplicateEmail(user.
Email
));