예제 #1
0
 public ExcelToCodeBase(ExcelToCodeState excelToCodeState)
 {
     converter             = excelToCodeState.Converter;
     log                   = excelToCodeState.Log;
     code                  = excelToCodeState.Code;
     excel                 = excelToCodeState.Excel;
     this.excelToCodeState = excelToCodeState;
 }
예제 #2
0
        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);
        }