public int AddNumbersIfSuccessful(int x, int y, IExternalService es) { if (es.DoGreatThings()) { return(x + y); } else { return(-999); } }