public SetParameterCreateProvider <TTypeToConstruct> To <TTypeOfParam>(TTypeOfParam parameterValue) { var constructorParameter = new ConstructorParameterRelay <TTypeToConstruct, TTypeOfParam>(ParameterName, parameterValue); Father.AddConstructorParameter(constructorParameter); return(Father); }
public SetParameterCreateProvider <TTypeToConstruct> ToEnumerableOf <TTypeOfParam>(params TTypeOfParam[] parametersValues) { IEnumerable <TTypeOfParam> actualParamValue = parametersValues; var constructorParameter = new ConstructorParameterRelay <TTypeToConstruct, IEnumerable <TTypeOfParam> >(ParameterName, actualParamValue); Father.AddConstructorParameter(constructorParameter); return(Father); }