/*----------------------------------------------------------------------------------------*/ /// <summary> /// Adds transient values for the properties defined in the dictionary. /// </summary> /// <param name="values">A dictionary of property names and values to define.</param> public ParameterCollectionBuilder PropertyValues(IDictionary values) { _collection.AddRange(ParameterHelper.CreateFromDictionary(values, (name, value) => new PropertyValueParameter(name, value))); return(this); }
/*----------------------------------------------------------------------------------------*/ /// <summary> /// Adds context variables for the properties defined on the object. /// </summary> /// <param name="values">An object containing the values to define as context variables.</param> public ParameterCollectionBuilder Variables(object values) { _collection.AddRange(ParameterHelper.CreateFromDictionary(values, (name, value) => new VariableParameter(name, value))); return(this); }
/*----------------------------------------------------------------------------------------*/ /// <summary> /// Adds transient values for constructor arguments matching the properties defined on the object. /// </summary> /// <param name="arguments">An object containing the values to define as arguments.</param> public ParameterCollectionBuilder ConstructorArguments(object arguments) { _collection.AddRange(ParameterHelper.CreateFromDictionary(arguments, (name, value) => new ConstructorArgumentParameter(name, value))); return(this); }