Last active
February 11, 2021 12:21
-
-
Save jsanjuan2016/d68747f2c10148e340901a86c1bfa8e6 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
private readonly ICustomers _service; | |
public Client() | |
{ | |
//Al estar accesibles de forma pública las implementaciones, un programador "despistado" | |
//podría saltarse el flujo de inversión de control y crear los objetos "a mano" mediante new | |
this._service = new Customers(new CustomerRepository()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment