예제 #1
0
 public static RunSummary Map(this RunSummaryDto runSummaryDto)
 {
     var runSummary = new RunSummary
     {
         Total = runSummaryDto.Total,
         Errors = runSummaryDto.Errors,
         Ignored = runSummaryDto.Ignored,
         Failures = runSummaryDto.Failures,
         Inconclusive = runSummaryDto.Inconclusive,
         Success = runSummaryDto.Success,
         Unknown = runSummaryDto.Unknown
     };
     return runSummary;
 }
예제 #2
0
 public static RunSummaryDto ToDto(this RunSummary runSummary)
 {
     var runSummaryDto = new RunSummaryDto
     {
         Total = runSummary.Total,
         Errors = runSummary.Errors,
         Ignored = runSummary.Ignored,
         Failures = runSummary.Failures,
         Inconclusive = runSummary.Inconclusive,
         Success = runSummary.Success,
         Unknown = runSummary.Unknown
     };
     return runSummaryDto;
 }