Created
November 23, 2010 20:12
-
-
Save plagelao/712436 to your computer and use it in GitHub Desktop.
Banco con credenciales
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 Banco { | |
private final OperacionesBancarias operacionesBancarias; | |
public Banco(OperacionesBancarias operacionesBancarias) { | |
this.operacionesBancarias = operacionesBancarias; | |
} | |
public Cuenta obtenerCuenta(Credenciales credenciales) { | |
Token token = operacionesBancarias.autenticar(credenciales); | |
return Cuenta.crear(token); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment