Last active
April 3, 2020 18:17
-
-
Save davidelettieri/3bdbb6315d3a9e08a585a74974a2b712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool ValidateEmail(Customer c) { /**/ } | |
bool ValidateNameSurname(Customer c) { /**/ } | |
bool SendEmail(Customer c) { /**/ } | |
bool SendEmailToCustomerIfValid(Customer c) { | |
if(!ValidateNameSurname(c)) | |
return false; | |
if(!ValidateEmail(c)) | |
return false; | |
return SendEmail(c); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment