Exemplo n.º 1
0
 private static string GetStatusDescription(Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus status)
 {
     return(status switch
     {
         Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Succeeded => "OK",
         Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Failed => "KO",
         _ => "-"
     });
Exemplo n.º 2
0
 private static string GetStatusDescription(Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus status)
 {
     if (status == Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Succeeded)
     {
         return("OK");
     }
     if (status == Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Failed)
     {
         return("KO");
     }
     return("-");
 }