public SimpleItemInfoDto SaveScreenshot(TestScreenshotDto screenshotDto)
        {
            var testScreenshot = screenshotDto.Map();
            var path           = _locationsProvider.GetScreenshotFolderPath(testScreenshot.TestGuid);

            testScreenshot.Save(path);
            _logger.Info($"Screenshot was saved: '{path}'");
            _logger.Debug($"Screenshot data was saved correctly: {JsonConvert.SerializeObject(testScreenshot, Formatting.Indented)}");
            return(testScreenshot.TestScreenshotInfo.ToDto());
        }
        public SimpleItemInfoDto SaveScreenshot(TestScreenshotDto screenshot)
        {
            screenshot.TestScreenshotInfo.ItemName =
                NamesProvider.GetScreenshotFileName(screenshot.TestScreenshotInfo.Date);
            var testGuid = screenshot.TestGuid;
            var path     = _locationsProvider.GetScreenshotFolderPath(testGuid);

            screenshot.Save(path);
            _logger.Info($"Screenshot was saved: '{path}'");
            _logger.Debug($"Screenshot data was saved correctly: {JsonConvert.SerializeObject(screenshot, Formatting.Indented)}");
            if (_processedTests.ContainsKey(testGuid))
            {
                var testRun = _reader.GetTestRun(_processedTests[testGuid]);
                if (testRun.Screenshots.All(s => s.Date != screenshot.TestScreenshotInfo.Date))
                {
                    testRun.Screenshots.Add(screenshot.TestScreenshotInfo);
                    var output = _reader.GetTestOutput(testRun);
                    SaveTestRun(testRun, output);
                }
            }
            return(screenshot.TestScreenshotInfo);
        }