5 writes to Id
Microsoft.AspNetCore.Identity.Test (5)
Passkeys\PasskeyHandlerAssertionTest.cs (1)
990
Id
= "df0a3af4-bd65-440f-82bd-5b839e300dcd",
SignInManagerTest.cs (3)
1582
var user = new PocoUser {
Id
= "foo", UserName = "Foo" };
1613
var user = new PocoUser {
Id
= "foo", UserName = "Foo" };
1644
var user = new PocoUser {
Id
= "foo", UserName = "Foo" };
src\Identity\test\Shared\PocoModel\PocoUser.cs (1)
18
Id
= Guid.NewGuid().ToString();
50 references to Id
Microsoft.AspNetCore.Identity.Test (50)
NoopUserStore.cs (1)
10
return Task.FromResult(user.
Id
);
Passkeys\PasskeyHandlerAssertionTest.cs (4)
443
var newUserId = test.User.
Id
[..^1];
1029
.Setup(m => m.FindByIdAsync(User.
Id
))
1046
.Returns(Task.FromResult(User.
Id
));
1086
"userHandle": {{ToBase64UrlJsonValue(User.
Id
)}}
SecurityStampValidatorTest.cs (8)
79
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
112
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
139
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
180
tid.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
221
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
258
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
296
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
325
userManager.Setup(u => u.GetUserIdAsync(user)).ReturnsAsync(user.
Id
).Verifiable();
SignInManagerTest.cs (32)
129
manager.Setup(m => m.FindByIdAsync(user.
Id
)).ReturnsAsync(user);
130
manager.Setup(m => m.GetUserIdAsync(user)).ReturnsAsync(user.
Id
.ToString());
175
SetupSignIn(context, auth, user.
Id
, isPersistent, loginProvider: null, amr: "pwd");
199
SetupSignIn(context, auth, user.
Id
, false, loginProvider: null, amr: "pwd");
262
id.AddClaim(new Claim(ClaimTypes.Name, user.
Id
));
331
It.Is<ClaimsPrincipal>(id => id.FindFirstValue(ClaimTypes.Name) == user.
Id
),
374
SetupSignIn(context, auth, user.
Id
, false, loginProvider);
379
It.Is<ClaimsPrincipal>(id => id.FindFirstValue(ClaimTypes.Name) == user.
Id
),
456
SetupSignIn(context, auth, user.
Id
, isPersistent: false, loginProvider: null);
519
SetupSignIn(context, auth, user.
Id
, isPersistent: false, loginProvider: null);
580
SetupSignIn(context, auth, user.
Id
, isPersistent: false, loginProvider: null);
721
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
722
SetupSignIn(context, auth, user.
Id
, isPersistent);
729
It.Is<ClaimsPrincipal>(i => i.FindFirstValue(ClaimTypes.Name) == user.
Id
763
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
802
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
878
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, externalLogin ? loginProvider : null);
884
&& i.FindFirstValue(ClaimTypes.NameIdentifier) == user.
Id
),
891
SetupSignIn(context, auth, user.
Id
);
927
SetupSignIn(context, auth, user.
Id
, isPersistent, loginProvider);
997
manager.Setup(m => m.GetUserId(claimsPrincipal)).Returns(user.
Id
.ToString());
1130
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, externalLogin ? loginProvider : null);
1137
&& i.FindFirstValue(ClaimTypes.NameIdentifier) == user.
Id
),
1146
SetupSignIn(context, auth, user.
Id
, isPersistent, null, "mfa");
1152
It.Is<ClaimsPrincipal>(i => i.FindFirstValue(ClaimTypes.Name) == user.
Id
1190
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, loginProvider: null);
1219
It.Is<ClaimsPrincipal>(i => i.FindFirstValue(ClaimTypes.Name) == user.
Id
1291
id.AddClaim(new Claim(ClaimTypes.Name, user.
Id
));
1495
SetupSignIn(context, auth, user.
Id
, isPersistent: null, loginProvider: null, amr: "pwd");
1549
SetupSignIn(context, auth, user.
Id
, isPersistent: null, loginProvider: null, amr: "pwd");
1749
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
1815
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
UserClaimsPrincipalFactoryTest.cs (2)
49
userManager.Setup(m => m.GetUserIdAsync(user)).ReturnsAsync(user.
Id
);
98
Assert.Contains(claims, c => c.Type == manager.Options.ClaimsIdentity.UserIdClaimType && c.Value == user.
Id
);
UserManagerTest.cs (3)
250
store.Setup(s => s.FindByIdAsync(user.
Id
, CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
254
var result = await userManager.FindByIdAsync(user.
Id
);
2197
.Returns(Task.FromResult(user2.
Id
))