Fix testing reader type

This commit is contained in:
Sergey Chebotar 2023-05-23 07:01:33 +03:00
parent 136aa7f238
commit 733440392e
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ public class CanReadProducts : IDisposable
_addIn = new(); _addIn = new();
_testWorkbook = Util.Application.Workbooks.Add(); _testWorkbook = Util.Application.Workbooks.Add();
_addIn.AutoOpen(); _addIn.AutoOpen();
_reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IReader>(); _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration);
} }
[ExcelFact] [ExcelFact]

View File

@ -14,7 +14,7 @@ public class CanWriteProducts : IDisposable
{ {
_addIn = new(); _addIn = new();
_addIn.AutoOpen(); _addIn.AutoOpen();
_reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IReader>(); _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration);
} }
[ExcelFact(Workbook = @"..\..\..\TestWorkbooks\TestSpecification.xlsx")] [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\TestSpecification.xlsx")]

View File

@ -14,7 +14,7 @@ public class RealPricelistTest : IDisposable
{ {
_addIn = new(); _addIn = new();
_addIn.AutoOpen(); _addIn.AutoOpen();
_reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IReader>(); _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration);
} }
[ExcelFact(Workbook = @"..\..\..\TestWorkbooks\RealTestSpecification.xlsm")] [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\RealTestSpecification.xlsm")]