public virtual ResultHistory GetFullResults() { var history = new ResultHistory(); GetAllTests().Each(t => { history[t] = t.LastResult; }); return history; }
public ResultHistory LoadResults(string directory) { var history = new ResultHistory(); var system = new FileSystem(); system.GetFiles(directory, "stresult").Each(f => { var result = system.LoadFromFile<TestResult>(f); history[result.Locator] = result; }); return history; }
public void SaveResultsToDirectory(ResultHistory theResults, string directory) { var system = new FileSystem(); system.ClearFolder(directory); theResults.Each((path, result) => { result.Locator = path; string filename = FileNameFor(path); filename = Path.Combine(directory, filename); system.PersistToFile(result, filename); }); }
public ResultHistory LoadResults(string directory) { var history = new ResultHistory(); var system = new FileSystem(); system.GetFiles(directory, "stresult").Each(f => { var result = system.LoadFromFile <TestResult>(f); history[result.Locator] = result; }); return(history); }
public void SaveResultsToDirectory(ResultHistory theResults, string directory) { var system = new FileSystem(); system.ClearFolder(directory); theResults.Each((path, result) => { result.Locator = path; string filename = FileNameFor(path); filename = Path.Combine(directory, filename); system.PersistToFile(result, filename); }); }