/// <summary> /// Add or replace the variable in the builder /// </summary> /// <param name="variableBuilder"></param> /// <returns></returns> internal ProcessBuilder AddOrReplaceVariable(VariableBuilder variableBuilder) { var variable = _variables.SingleOrDefault(v => v.VariableName == variableBuilder.VariableName); if (variable != null) { _variables.Remove(variable); } _variables.Add(variableBuilder); return(this); }
/// <summary> /// Constructor /// </summary> /// <param name="parent"></param> public AccountBuilder(VariableBuilder parent, IEnumerable <string> accounts) { _parenty = parent; _accounts.AddRange(_accounts); }
/// <summary> /// Initializes a new instance of the <see cref="ConstraintBuilder"/> class. /// </summary> /// <param name="parent">The parent.</param> public ConstraintBuilder(VariableBuilder parent) { _parent = parent; }