Created
March 22, 2019 13:06
-
-
Save rinaldodev/6b00c02b74e5367abd9e2fd67d8bcd34 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class CadastroUsuarioService { | |
public void cadastrarNovoUsuario(Usuario usuario, String confirmacaoEmail, Boolean aceitouTermosDeUso) { | |
if (!aceitouTermosDeUso) { | |
// lança exceção de termos de uso | |
} | |
if (!usuario.getEmail().equals(confirmacaoEmail)) { | |
// lança exceção de emails diferentes | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment