Skip to content

Instantly share code, notes, and snippets.

@plagelao
Created November 17, 2010 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plagelao/703974 to your computer and use it in GitHub Desktop.
Save plagelao/703974 to your computer and use it in GitHub Desktop.
Banco que casi cumple con la D
public class Banco {
private final OperacionesBancarias operacionesBancarias;
public Banco(OperacionesBancarias operacionesBancarias) {
this.operacionesBancarias = operacionesBancarias;
}
public Cuenta obtenerCuenta(String usuario, Pin pin) {
String token = operacionesBancarias.autenticarUsuario(usuario, pin);
return Cuenta.crear(token);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment