Пример #1
0
        public CompositePurchasePolicy(APurchasePolicy leftPolicy, APurchasePolicy rightPolicy, Operator boolOperator) : base()
        {
            this.Op = boolOperator;

            this.ChildrenPolicies = new List <APurchasePolicy>();
            this.ChildrenPolicies.Add(leftPolicy);
            this.ChildrenPolicies.Add(rightPolicy);

            this.PolicyLeftID  = PolicyLeft.policyID;
            this.PolicyRightID = PolicyRight.policyID;
        }
Пример #2
0
 public bool Equals(APurchasePolicy other)
 {
     return(other != null &&
            policyID.Equals(other.policyID));
 }