Beispiel #1
0
        public Policy(PolicyId policyId, string name, string dictionaryName)
        {
            if (policyId == null)
            {
                throw new ArgumentNullException("policyId");
            }

            this.id = policyId;
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new PolicyArgumentException("Policy", "Name");
            }
            this.name = name;
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new PolicyArgumentException("Policy", "DictionaryName");
            }
            this.dictionaryName = dictionaryName;
            this.id             = policyId;
        }
Beispiel #2
0
 public RuleEngineBasedPolicy(PolicyId policyId, string name, string dictionaryName) : base(policyId, name, dictionaryName)
 {
 }