aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Tests/BsExcelParserTests.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2025-04-28 16:43:14 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2025-04-28 16:43:14 +0300
commit1ec08919c353d1459c524442b81538fd57fe5e83 (patch)
treeca5fb19390ba3b03fc2f2395a7f2a6851bed6872 /RhSolutions.SkuParser.Tests/BsExcelParserTests.cs
parent52718a90922b569350e36baee5d4d3c3e5723fed (diff)
Refactor parsers to include logging functionality and update tests accordinglyHEADmaster
Diffstat (limited to 'RhSolutions.SkuParser.Tests/BsExcelParserTests.cs')
-rw-r--r--RhSolutions.SkuParser.Tests/BsExcelParserTests.cs5
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>()
{