diff --git a/RhSolutions.Tests/CanReadProducts.cs b/RhSolutions.Tests/CanReadProducts.cs index 5973017..e796da0 100644 --- a/RhSolutions.Tests/CanReadProducts.cs +++ b/RhSolutions.Tests/CanReadProducts.cs @@ -15,7 +15,7 @@ public class CanReadProducts : IDisposable _addIn = new(); _testWorkbook = Util.Application.Workbooks.Add(); _addIn.AutoOpen(); - _reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService(); + _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration); } [ExcelFact] diff --git a/RhSolutions.Tests/CanWriteProducts.cs b/RhSolutions.Tests/CanWriteProducts.cs index 33df1f8..d53931d 100644 --- a/RhSolutions.Tests/CanWriteProducts.cs +++ b/RhSolutions.Tests/CanWriteProducts.cs @@ -14,7 +14,7 @@ public class CanWriteProducts : IDisposable { _addIn = new(); _addIn.AutoOpen(); - _reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService(); + _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration); } [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\TestSpecification.xlsx")] diff --git a/RhSolutions.Tests/RealPricelistTest.cs b/RhSolutions.Tests/RealPricelistTest.cs index 37a9bc4..ba8cb68 100644 --- a/RhSolutions.Tests/RealPricelistTest.cs +++ b/RhSolutions.Tests/RealPricelistTest.cs @@ -14,7 +14,7 @@ public class RealPricelistTest : IDisposable { _addIn = new(); _addIn.AutoOpen(); - _reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService(); + _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration); } [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\RealTestSpecification.xlsm")]