Esempio n. 1
0
 public void CheckSubject()
 {
     Assert.NotNull(_actual.Subject);
     Assert.Equal(_expected.Subject.Identities.Count(), _actual.Subject.Identities.Count());
     foreach (var identity in _expected.Subject.Identities)
     {
         var actual =
             _actual.Subject.Identities.SingleOrDefault(
                 x => string.Equals(x.AuthenticationType, identity.AuthenticationType, StringComparison.Ordinal));
         Assert.NotNull(actual);
         CommonVerifications.VerifyClaimset(identity.Claims, actual.Claims);
     }
 }
Esempio n. 2
0
 public void CheckClaims()
 {
     CommonVerifications.VerifyClaimset(_expected.Claims, _actual.Claims);
 }