Esempio n. 1
0
 public void Teardown()
 {
     _securitySpecification = null;
 }
Esempio n. 2
0
 public void Setup()
 {
     _securitySpecification = new SecuritySpecificationInfo();
 }
Esempio n. 3
0
 private ResourceSecurityInfo(SecuritySpecificationInfo allowed, SecuritySpecificationInfo denied)
 {
     Allowed = allowed;
     Denied = denied;
 }
Esempio n. 4
0
 private void Merge(SecuritySpecificationInfo securitySpecificationInfo, Expression<Func<ResourceSecurityInfo, object>> mergingDelegate)
 {
     var method = ((MethodCallExpression)mergingDelegate.Body).Method;
     foreach (var claimType in securitySpecificationInfo)
     {
         if (!securitySpecificationInfo[claimType].Any())
         {
             method.Invoke(this, new object[] { claimType, null });
         }
         else
         {
             foreach (var claimValue in securitySpecificationInfo[claimType])
             {
                 method.Invoke(this, new object[] { claimType, claimValue });
             }
         }
     }
 }
 public void Teardown()
 {
     _securitySpecification = null;
 }
 public void Setup()
 {
     _securitySpecification = new SecuritySpecificationInfo();
 }