Пример #1
0
 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();
 }
Пример #4
0
 public EpplusNameValueProvider(ExcelDataProvider excelDataProvider)
 {
     _excelDataProvider = excelDataProvider;
     _values = _excelDataProvider.GetWorkbookNameValues();
 }