예제 #1
0
        public void TestFixtureSetUp()
        {
            m_policyCache =
                new LocalPolicyCache(
                    Workshare.TestUtils.TestFileUtils.MakeRootPathAbsolute(@"\projects\Hygiene\src\TestDocuments\ContentScanner.Tests"),
                    true);

            Assert.AreEqual(1, m_policyCache.PolicySets.Count, "Expect to find a single policy set in this location.");
        }
예제 #2
0
		public ActionProcessor(IPolicyCache policyCache, PolicyEngineCache policyEngineCache)
		{
			m_policyCache = policyCache;
			m_policyEngineCache = policyEngineCache;
			if (m_policyCache == null)
				throw new PolicyEngineException("The policy store has not been initialised.");
			if (m_policyEngineCache == null)
				throw new PolicySchemaException("The policy engine cache has not been initialised.");
		}
예제 #3
0
        public void TestFixtureSetUp()
        {
            m_policyCache =
                new LocalPolicyCache(
                    TESTPATH,
                    true);

            Assert.AreEqual(4, m_policyCache.PolicySets.Count, "Expect to find three policy sets in this location.");
        }
예제 #4
0
		public PolicyEngineCache(IPolicyCache policyCache, IProgressCallback callback)
		{
			if (null == policyCache)
				throw new Workshare.Policy.Exceptions.ArgumentNullException("policyCache", "Invalid policy cache");

			m_policyCache = policyCache;
			m_progressCallback = callback;

			m_policyEngines = new Dictionary<string, Dictionary<string, PolicyEngine>>();
		}