public void Initialize() { _package = new ExcelPackage(); _worksheet = _package.Workbook.Worksheets.Add("Test"); _excelDataProvider = A.Fake <ExcelDataProvider>(); A.CallTo(() => _excelDataProvider.GetDimensionEnd(A <string> .Ignored)).Returns(new ExcelCellAddress(10, 1)); A.CallTo(() => _excelDataProvider.GetWorkbookNameValues()).Returns(new ExcelNamedRangeCollection(_package.Workbook)); _parser = new FormulaParser(_excelDataProvider); }
public EpplusNameValueProvider(ExcelDataProvider excelDataProvider) { _excelDataProvider = excelDataProvider; _values = _excelDataProvider.GetWorkbookNameValues(); }
public virtual void Reload() { _values = _excelDataProvider.GetWorkbookNameValues(); }
public EpplusNameValueProvider(ExcelDataProvider excelDataProvider) { _excelDataProvider = excelDataProvider; _values = _excelDataProvider.GetWorkbookNameValues(); }