public VoluntaryController() { string connectionString = ConfigurationManager.ConnectionStrings["conexao"].ToString(); //injetando a dependencia do repositorio na aplicação voluntaryRepository = new VoluntaryRepository(connectionString); voluntaryApplication = new VoluntaryApplication(voluntaryRepository); }
public VoluntaryApplication(IVoluntaryRepository voluntaryRepository) { this.voluntaryRepository = voluntaryRepository; }