示例#1
0
 public static async Task SaveTo(this ICachedResultChannel cachedResultChannel, IResultChannel resultChannel, string message)
 {
     if (await resultChannel.OpenChannel(message))
     {
         try
         {
             foreach (var testResult in cachedResultChannel.TestResults)
             {
                 resultChannel.RecordResult(testResult);
             }
         }
         finally
         {
             await resultChannel.CloseChannel();
         }
     }
 }
示例#2
0
 public void RecordResult(TestResultViewModel result)
 {
     resultChannel.RecordResult(result);
 }