/// <summary>
 /// Update Test Runs.
 /// </summary>
 /// <returns>Task.</returns>
 private static async Task UpdateTestRunsAsync()
 {
     foreach (var testRunId in NewTestRunIds)
     {
         await AzureDevOpsUtility.UpdateTestRunAsync(tr, testRunId).ConfigureAwait(false);
     }
 }
        /// <summary>
        /// Update Test Runs.
        /// </summary>
        /// <returns>Task.</returns>
        private static async Task UpdateTestRunsAsync()
        {
            foreach (var testRunId in NewTestRunIds)
            {
                var testresults = await AzureDevOpsUtility.GetTestResultsOfATestRunAsync(testRunId).ConfigureAwait(false);

                var resultArray = new List <object>();
                foreach (var testresult in testresults.SelectToken("value").ToList())
                {
                    var result = TestResults.TestCases.FirstOrDefault(z => z.TestCaseId.ToString().Equals(testresult.SelectToken("testCase.id").ToString()));
                    resultArray.Add(new { id = testresult.SelectToken("id"), state = Constants.Completed, outcome = result.Outcome.ToString(), durationInMs = 1000 });
                }

                await AzureDevOpsUtility.UpdateTestResultsOfATestRunAsync(testRunId, resultArray).ConfigureAwait(false);

                await AzureDevOpsUtility.UpdateTestRunAsync(Tr, testRunId).ConfigureAwait(false);
            }
        }