private static IExcelImporter CreateExcelImporter() { var cellCoordinateParser = new CellCoordinateParser(); var cellValueParser = new CellValueParser(); var cellParser = new CellParser(cellCoordinateParser, cellValueParser); var excelImporter = new ExcelImporter(cellParser); return excelImporter; }
private ExcelDataSet CreateDataSet() { var cellCoordinateParser = new CellCoordinateParser(); var cellValueParser = new CellValueParser(); var cellParser = new CellParser(cellCoordinateParser, cellValueParser); var importer = new ExcelImporter(cellParser); var dataSet = importer.GetCellValues(@"data.xlsx"); return dataSet; }
public void TestMethod1() { var cellCoordinateParser = new CellCoordinateParser(); var cellValueParser = new CellValueParser(); var cellParser = new CellParser(cellCoordinateParser, cellValueParser); var importer = new ExcelImporter(cellParser); var result = importer.GetCellValues(@"data.xlsx"); Assert.AreEqual(15, result.TrialDataRows.Count); Assert.AreEqual("Vpn", result.TrialDataRows[0].Values[0]); }