public ConditionsContainer(ConditionContainerType type, List <ConditionsContainer> conditionContainers) { if (conditionContainers == null) { throw new ArgumentNullException(nameof(conditionContainers)); } if (conditionContainers.Count < 2) { throw new ArgumentException("provide at least 2 condition containers or use simple conditions instead"); } this.type = type; this.conditionContainers = conditionContainers; this.conditions = new List <Condition>(); }
public ConditionsContainer(ConditionContainerType type, List <Condition> conditions) { this.type = type; this.conditions = conditions ?? throw new ArgumentNullException(nameof(conditions)); this.conditionContainers = new List <ConditionsContainer>(); }