示例#1
0
 private void VerifyServiceACLsRefresh(ServiceAuthorizationManager manager, Type protocol
                                       , string aclString)
 {
     foreach (Type protocolClass in manager.GetProtocolsWithAcls())
     {
         AccessControlList accessList = manager.GetProtocolsAcls(protocolClass);
         if (protocolClass == protocol)
         {
             NUnit.Framework.Assert.AreEqual(accessList.GetAclString(), aclString);
         }
         else
         {
             NUnit.Framework.Assert.AreEqual(accessList.GetAclString(), "*");
         }
     }
 }