65 writes to UserName
Microsoft.AspNetCore.Identity.Test (65)
SignInManagerTest.cs (33)
34
var user = new PocoUser {
UserName
= "Foo" };
64
var user = new PocoUser {
UserName
= "Foo" };
121
var user = new PocoUser {
UserName
= "Foo" };
144
var user = new PocoUser {
UserName
= "Foo" };
168
var user = new PocoUser {
UserName
= "Foo" };
196
var user = new PocoUser {
UserName
= "Foo" };
240
var user = new PocoUser {
UserName
= "Foo" };
266
var user = new PocoUser {
UserName
= "Foo" };
303
var user = new PocoUser {
UserName
= "Foo" };
358
var user = new PocoUser {
UserName
= "Foo" };
399
var user = new PocoUser {
UserName
= "Foo" };
432
var user = new PocoUser {
UserName
= "Foo" };
479
var user = new PocoUser {
UserName
= "Foo" };
516
var user = new PocoUser {
UserName
= "Foo" };
565
var user = new PocoUser {
UserName
= "Foo" };
604
var user = new PocoUser {
UserName
= "Foo" };
657
var user = new PocoUser {
UserName
= "Foo" };
716
var user = new PocoUser {
UserName
= "Foo" };
751
var user = new PocoUser {
UserName
= "Foo" };
777
var user = new PocoUser {
UserName
= "Foo" };
835
var user = new PocoUser {
UserName
= "Foo" };
878
var user = new PocoUser {
UserName
= "Foo" };
905
var user = new PocoUser {
UserName
= "Foo" };
934
var user = new PocoUser {
UserName
= "Foo" };
992
var user = new PocoUser {
UserName
= "Foo" };
1033
var user = new PocoUser { Id = "foo",
UserName
= "Foo" };
1064
var user = new PocoUser { Id = "foo",
UserName
= "Foo" };
1095
var user = new PocoUser { Id = "foo",
UserName
= "Foo" };
1139
var user = new PocoUser {
UserName
= "Foo" };
1162
var user = new PocoUser {
UserName
= "Foo" };
1187
var user = new PocoUser {
UserName
= "Foo" };
1226
var user = new PocoUser {
UserName
= "Foo" };
1252
var user = new PocoUser {
UserName
= "Foo" };
src\Identity\test\Shared\PocoModel\PocoUser.cs (2)
25
UserName
= userName;
46
UserName
= userName;
UserClaimsPrincipalFactoryTest.cs (1)
45
var user = new PocoUser {
UserName
= "Foo", Email = "foo@bar.com" };
UserManagerTest.cs (26)
68
var user = new PocoUser {
UserName
= "Foo" };
87
var user = new PocoUser {
UserName
= "Foo", SecurityStamp = "sssss" };
107
var user = new PocoUser {
UserName
= "Foo", Email = "Foo@foo.com" };
128
var user = new PocoUser {
UserName
= "Foo" };
146
var user = new PocoUser {
UserName
= "Foo" };
166
var user = new PocoUser {
UserName
= "Foo", Email = "email" };
208
var user = new PocoUser {
UserName
= "Foo" };
226
var user = new PocoUser {
UserName
= "Foo" };
243
var user = new PocoUser {
UserName
= "Foo" };
321
var user = new PocoUser {
UserName
= "Foo", Email = "Bar" };
340
var user = new PocoUser {
UserName
= "Foo" };
378
var user = new PocoUser {
UserName
= "Foo" };
418
var user = new PocoUser {
UserName
= "Foo" };
442
var user = new PocoUser {
UserName
= "Foo" };
479
var user = new PocoUser {
UserName
= "Foo" };
505
var user = new PocoUser {
UserName
= "Foo" };
526
var user = new PocoUser {
UserName
= "Foo" };
547
var user = new PocoUser {
UserName
= "Foo" };
570
var user = new PocoUser {
UserName
= "Foo" };
601
var user = new PocoUser {
UserName
= "nulldude" };
618
var user = new PocoUser {
UserName
= "nulldude" };
634
var user = new PocoUser {
UserName
= "Foo" };
655
var user = new PocoUser {
UserName
= "Foo" };
1004
var user = new PocoUser() {
UserName
= Guid.NewGuid().ToString() };
1757
var user = new PocoUser() {
UserName
= "dupeEmail", Email = "dupe@email.com" };
1758
var user2 = new PocoUser() {
UserName
= "dupeEmail2", Email = "dupe@email.com" };
UserValidatorTest.cs (3)
29
var user = new PocoUser {
UserName
= input };
51
var user = new PocoUser {
UserName
= userName };
79
var user = new PocoUser {
UserName
= userName };
28 references to UserName
Microsoft.AspNetCore.Identity.Test (28)
NoopUserStore.cs (1)
15
return Task.FromResult(user.
UserName
);
SignInManagerTest.cs (11)
51
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-bogus1", false, false);
93
manager.Setup(m => m.FindByNameAsync(user.
UserName
)).ReturnsAsync(user);
96
manager.Setup(m => m.GetUserNameAsync(user)).ReturnsAsync(user.
UserName
);
132
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-1a", isPersistent, false);
156
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-1a", false, false);
181
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-1a", false, false);
288
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-1a", false, false);
797
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-1a", isPersistent, false);
845
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-bogus1", false, false);
893
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-bogus1", false, true);
1175
var result = await helper.PasswordSignInAsync(user.
UserName
, "[PLACEHOLDER]-1a", false, false);
UserClaimsPrincipalFactoryTest.cs (2)
50
userManager.Setup(m => m.GetUserNameAsync(user)).ReturnsAsync(user.
UserName
);
97
claims, c => c.Type == manager.Options.ClaimsIdentity.UserNameClaimType && c.Value == user.
UserName
);
UserManagerTest.cs (14)
70
store.Setup(s => s.GetUserNameAsync(user, CancellationToken.None)).Returns(Task.FromResult(user.
UserName
)).Verifiable();
71
store.Setup(s => s.SetNormalizedUserNameAsync(user, normalizer.NormalizeName(user.
UserName
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
109
store.Setup(s => s.GetUserNameAsync(user, CancellationToken.None)).Returns(Task.FromResult(user.
UserName
)).Verifiable();
112
store.Setup(s => s.SetNormalizedUserNameAsync(user, normalizer.NormalizeName(user.
UserName
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
147
store.Setup(s => s.GetUserNameAsync(user, CancellationToken.None)).Returns(Task.FromResult(user.
UserName
)).Verifiable();
148
store.Setup(s => s.SetNormalizedUserNameAsync(user, normalizer.NormalizeName(user.
UserName
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
167
store.Setup(s => s.GetUserNameAsync(user, CancellationToken.None)).Returns(Task.FromResult(user.
UserName
)).Verifiable();
169
store.Setup(s => s.SetNormalizedUserNameAsync(user, normalizer.NormalizeName(user.
UserName
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
227
store.Setup(s => s.FindByNameAsync(normalizer.NormalizeName(user.
UserName
), CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
231
var result = await userManager.FindByNameAsync(user.
UserName
);
244
store.Setup(s => s.FindByNameAsync(user.
UserName
, CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
249
var result = await userManager.FindByNameAsync(user.
UserName
);
327
var result = await userManager.FindByNameAsync(user.
UserName
);
1766
.Returns(Task.FromResult(user.
UserName
))