private void AddTestResultByTestoutcome(ITestRun testRun, IList <TestOutcome> outcomeList, ref IList <TestResult> list)
 {
     foreach (var outcome in outcomeList)
     {
         foreach (var tr in testRun.QueryResultsByOutcome(outcome))
         {
             TestResult instance = new TestResult
             {
                 TestCaseId    = tr.TestCaseId,
                 TestCaseTitle = tr.TestCaseTitle,
                 State         = tr.State,
                 Outcome       = tr.Outcome,
                 DateStarted   = tr.DateStarted,
                 DateCompleted = tr.DateCompleted,
                 ErrorMsg      = tr.ErrorMessage,
                 LogUri        = tr.Attachments.FirstOrDefault().Uri.AbsoluteUri,
             };
             list.Add(instance);
         }
     }
 }
 private void AddTestResultByTestoutcome(ITestRun testRun, IList<TestOutcome> outcomeList, ref IList<TestResult> list)
 {
     foreach (var outcome in outcomeList)
     {
         foreach (var tr in testRun.QueryResultsByOutcome(outcome))
         {
             TestResult instance = new TestResult
             {
                 TestCaseId = tr.TestCaseId,
                 TestCaseTitle = tr.TestCaseTitle,
                 State = tr.State,
                 Outcome = tr.Outcome,
                 DateStarted = tr.DateStarted,
                 DateCompleted = tr.DateCompleted,
                 ErrorMsg = tr.ErrorMessage,
                 LogUri = tr.Attachments.FirstOrDefault().Uri.AbsoluteUri,
             };
             list.Add(instance);
         }
     }
 }