public void DeleteTestScreenshot(TestRunDto testRun, TestScreenshotDto testScreenshot)
        {
            var testScreenshotFullPath = _locationsProvider
                                         .GetTestScreenshotFullPath(testRun.TestInfo.Guid, testScreenshot.TestScreenshotInfo.Date);

            _logger.Debug($"Deleting Test screenshot: {testScreenshotFullPath}");
            File.Delete(testScreenshotFullPath);
        }
        public List <TestScreenshotDto> GetTestScreenshots(TestRunDto test)
        {
            var screens = new List <TestScreenshotDto>();

            foreach (var simpleItemInfo in test.Screenshots)
            {
                var screenPath =
                    _locationsProvider.GetTestScreenshotFullPath(test.TestInfo.Guid, simpleItemInfo.Date);
                var screen = screenPath.LoadTestScreenshot();
                if (screen != null)
                {
                    screens.Add(screen);
                }
            }
            return(screens);
        }