protected bool Equals(NullRule other) { return(unit.Equals(other.unit) && unitPrice == other.unitPrice); }
protected bool Equals(MultibuyRule other) { return(unitUnderOffer.Equals(other.unitUnderOffer) && requiredUnits == other.requiredUnits && offerPrice == other.offerPrice); }