diff options
Diffstat (limited to 'RhSolutions.SkuParser.Tests/BsExcelParserTests.cs')
-rw-r--r-- | RhSolutions.SkuParser.Tests/BsExcelParserTests.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/RhSolutions.SkuParser.Tests/BsExcelParserTests.cs b/RhSolutions.SkuParser.Tests/BsExcelParserTests.cs index c69088a..d2ed08e 100644 --- a/RhSolutions.SkuParser.Tests/BsExcelParserTests.cs +++ b/RhSolutions.SkuParser.Tests/BsExcelParserTests.cs @@ -1,4 +1,5 @@ using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; using RhSolutions.SkuParser.Api.Services; using RhSolutions.SkuParser.Services; @@ -11,11 +12,11 @@ public class BsExcelParserTests { var mockFile = FormFileUtil.GetMockFormFile(filename); + var logger = LoggerFactory.Create(builder => builder.AddConsole()).CreateLogger<BsExcelParser>(); var configuration = new ConfigurationBuilder() .AddJsonFile("appsettings.json", optional: true, reloadOnChange: false) .Build(); - - var parser = new BsExcelParser(configuration); + var parser = new BsExcelParser(configuration, logger); var actual = parser.ParseProducts(mockFile.Object); var expected = new Dictionary<Product, double>() { |