public void DeleteTest(TestRunDto testRun)
        {
            var testFullPath = _locationsProvider.GetTestFullPath(testRun.TestInfo.Guid,
                                                                  testRun.TestInfo.Finish);

            _logger.Debug($"Deleting Test: {testFullPath}");
            File.Delete(testFullPath);
            _locationsProvider.GetTestFolderPath(testRun.TestInfo.Guid)
            .DeleteItemsFromItemInfosFile(_locationsProvider.Paths.File.Tests, new List <ItemInfoDto>(1)
            {
                testRun.TestInfo
            });
        }
        public List <ItemInfoDto> GetTestInfos(Guid testGuid)
        {
            var test = _locationsProvider.GetTestFolderPath(testGuid)
                       .LoadItemInfos(_locationsProvider.Paths.File.Tests).ToList();

            return(test);
        }
 public static string SaveTestInfo(this ItemInfo testInfo, ILocationsProvider locationsProvider)
 {
     return(testInfo.SaveItemInfo(locationsProvider.GetTestFolderPath(testInfo.Guid), locationsProvider.Paths.File.Tests, false));
 }