public static void StartTestRun(string testRunId)
 {
     try
     {
         var testRun = new TestRun {
             State = TestRunState.Queued
         };
         CltHttpClientWrapper.Patch("/_apis/clt/testruns/" + testRunId, GetStringContentForObject(testRun)).Wait();
     }
     catch (AggregateException aggregateException)
     {
         Exception innerException   = aggregateException.InnerException;
         string    exceptionMessage = "Starting test run failed with the following error";
         while (innerException != null)
         {
             exceptionMessage = exceptionMessage + "\n\t" + innerException.Message;
             innerException   = innerException.InnerException;
         }
         throw new Exception(exceptionMessage);
     }
 }