public ExcelToCodeBase(ExcelToCodeState excelToCodeState) { converter = excelToCodeState.Converter; log = excelToCodeState.Log; code = excelToCodeState.Code; excel = excelToCodeState.Excel; this.excelToCodeState = excelToCodeState; }
public ExcelToCodeState(ICodeNameToExcelNameConverter converter) { Converter = converter ?? throw new ArgumentNullException(nameof(converter)); Log = new LogState(); Code = new CodeState(); Excel = new ExcelState(); Given = new ExcelToCodeGiven(this); Table = new ExcelToCodeTable(this); SimpleProperty = new ExcelToCodeSimpleProperty(this); ComplexProperty = new ExcelToCodeComplexProperty(this); List = new ExcelToCodeList(this); When = new ExcelToCodeWhen(this); Then = new ExcelToCodeThen(this); }