From 1ec08919c353d1459c524442b81538fd57fe5e83 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Mon, 28 Apr 2025 16:43:14 +0300 Subject: Refactor parsers to include logging functionality and update tests accordingly --- RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs') 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; /// public class CommonCsvParser : ISkuParser { + private readonly ILogger logger; + + public CommonCsvParser(ILogger logger) + { + this.logger = logger; + } + public Dictionary ParseProducts(IFormFile file) { using StreamReader reader = new(file.OpenReadStream()); -- cgit v1.2.3