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; }
public RuleEngineBasedPolicy(PolicyId policyId, string name, string dictionaryName) : base(policyId, name, dictionaryName) { }