public TestResultArgs(Process process, Activity activity, TestResultStage resultStage, string extraDetails)
 {
     CurrentProcess = process;
     CurrentActivity = activity;
     ResultStage = resultStage;
     ExtraDetails = extraDetails;
 }
 private void FailTest(string reasonText, TestResultStage tesResultStage, Process p, Activity a)
 {
     p.ActivityExecutionError = reasonText;
     a.ActivityExecutionError = p.ActivityExecutionError;
     if (tesResultStage != TestResultStage.ActivityNotFoundRetrying)
     {
         p.ProcessHasUnexpectedErrors = true;
         
         a.Retry = false;
         a.TestStatus = "Failed";
     }
     SendResult(new TestResultArgs(p, a, TestResultStage.ActivityExecutionError, reasonText));
 }