62 references to FindClaimValue
Microsoft.AspNetCore.Authentication.Test (62)
CookieTests.cs (62)
205Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
216Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
240Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
249Assert.Null(FindClaimValue(transaction3, ClaimTypes.Name));
416Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
432Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
433Assert.Equal("yup", FindClaimValue(transaction2, "xform"));
434Assert.Null(FindClaimValue(transaction2, "sync"));
460Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
462Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
464Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
494Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
496Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
498Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
527Assert.Null(FindClaimValue(transaction2, ClaimTypes.Name));
556Assert.Null(FindClaimValue(transaction2, ClaimTypes.Name));
585Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
621Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
627Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
633Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
639Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
666Assert.Equal("Alice2", FindClaimValue(transaction2, ClaimTypes.Name));
698Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
701Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
708Assert.Equal("Alice2", FindClaimValue(transaction4, ClaimTypes.Name));
714Assert.Equal("Alice2", FindClaimValue(transaction5, ClaimTypes.Name));
742Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
748Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
754Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
760Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
798Assert.Equal("1", FindClaimValue(transaction2, "counter"));
804Assert.Equal("11", FindClaimValue(transaction3, "counter"));
810Assert.Equal("111", FindClaimValue(transaction4, "counter"));
816Assert.Null(FindClaimValue(transaction5, "counter"));
857Assert.Equal("1", FindClaimValue(transaction2, "counter"));
863Assert.Equal("11", FindClaimValue(transaction3, "counter"));
869Assert.Equal("111", FindClaimValue(transaction4, "counter"));
875Assert.Null(FindClaimValue(transaction5, "counter"));
903Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
909Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
915Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
921Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
955Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
967Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
973Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1002Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1008Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1014Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
1032Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1038Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1045Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1051Assert.Equal("Alice", FindClaimValue(transaction5, ClaimTypes.Name));
1078Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1084Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1091Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1097Assert.Equal("Alice", FindClaimValue(transaction5, ClaimTypes.Name));
1126Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1132Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1139Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1144Assert.Equal("Alice", FindClaimValue(transaction5, ClaimTypes.Name));
1149Assert.Equal("Alice", FindClaimValue(transaction6, ClaimTypes.Name));
1682Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));