aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Api/Services/CommonCsvParser.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.Api/Services/CommonCsvParser.cs
parent52718a90922b569350e36baee5d4d3c3e5723fed (diff)
Refactor parsers to include logging functionality and update tests accordinglyHEADmaster
Diffstat (limited to 'RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs')
-rw-r--r--RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs b/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs
index 6dfc0da..549b6c5 100644
--- a/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs
+++ b/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs
@@ -11,6 +11,13 @@ namespace RhSolutions.SkuParser.Services;
/// </summary>
public class CommonCsvParser : ISkuParser
{
+ private readonly ILogger<CommonCsvParser> logger;
+
+ public CommonCsvParser(ILogger<CommonCsvParser> logger)
+ {
+ this.logger = logger;
+ }
+
public Dictionary<Product, double> ParseProducts(IFormFile file)
{
using StreamReader reader = new(file.OpenReadStream());