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 TestRunDto GetTestRun(ItemInfoDto testInfo) { TestRunDto test = null; if (testInfo != null) { var testFullPath = _locationsProvider.GetTestFullPath(testInfo.Guid, testInfo.Finish); if (File.Exists(testFullPath)) { test = testFullPath.LoadTestRun(); } } return(test); }