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."); }
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."); }
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."); }
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>>(); }