24 references to GetSingleClaim
Microsoft.AspNetCore.Identity.FunctionalTests (24)
MapIdentityApiTests.cs (24)
1044Assert.Equal("pwd", GetSingleClaim(infoClaims, "amr"));
1045Assert.Equal(Email, GetSingleClaim(infoClaims, ClaimTypes.Name));
1046Assert.Equal(Email, GetSingleClaim(infoClaims, ClaimTypes.Email));
1048var originalNameIdentifier = GetSingleClaim(infoClaims, ClaimTypes.NameIdentifier);
1063Assert.Equal(Email, GetSingleClaim(infoPostClaims, ClaimTypes.Name));
1064Assert.Equal(Email, GetSingleClaim(infoPostClaims, ClaimTypes.Email));
1065Assert.Equal(originalNameIdentifier, GetSingleClaim(infoPostClaims, ClaimTypes.NameIdentifier));
1089Assert.Equal(Email, GetSingleClaim(claimsAfterEmailChange, ClaimTypes.Name));
1090Assert.Equal(Email, GetSingleClaim(claimsAfterEmailChange, ClaimTypes.Email));
1091Assert.Equal(originalNameIdentifier, GetSingleClaim(claimsAfterEmailChange, ClaimTypes.NameIdentifier));
1104Assert.Equal(newEmail, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.Name));
1105Assert.Equal(newEmail, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.Email));
1106Assert.Equal(originalNameIdentifier, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.NameIdentifier));
1139Assert.Equal("pwd", GetSingleClaim(infoClaims, "amr"));
1140Assert.Equal(Email, GetSingleClaim(infoClaims, ClaimTypes.Name));
1141Assert.Equal(Email, GetSingleClaim(infoClaims, ClaimTypes.Email));
1143var originalNameIdentifier = GetSingleClaim(infoClaims, ClaimTypes.NameIdentifier);
1156Assert.Equal(Email, GetSingleClaim(infoPostClaims, ClaimTypes.Email));
1157Assert.Equal(originalNameIdentifier, GetSingleClaim(infoPostClaims, ClaimTypes.NameIdentifier));
1178Assert.Equal(Email, GetSingleClaim(claimsAfterEmailChange, ClaimTypes.Email));
1179Assert.Equal(originalNameIdentifier, GetSingleClaim(claimsAfterEmailChange, ClaimTypes.NameIdentifier));
1189Assert.Equal(newEmail, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.Name));
1190Assert.Equal(newEmail, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.Email));
1191Assert.Equal(originalNameIdentifier, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.NameIdentifier));