コード例 #1
0
 public int AddNumbersIfSuccessful(int x, int y, IExternalService es)
 {
     if (es.DoGreatThings())
     {
         return(x + y);
     }
     else
     {
         return(-999);
     }
 }