public AbastecimentoController() { Banco banco = new Banco(); AbastecimentoDAL abastecimentoDAL = new AbastecimentoDAL(banco); VeiculoDAL veiculoDAL = new VeiculoDAL(banco); _abastecimentoService = new AbastecimentoService(abastecimentoDAL, veiculoDAL); }
private AbastecimentoController InstanciarCamadas() { Banco banco = new Banco(); AbastecimentoDAL abastecimentoDAL = new AbastecimentoDAL(banco); VeiculoDAL veiculoDAL = new VeiculoDAL(banco); AbastecimentoService abastecimentoService = new AbastecimentoService(abastecimentoDAL, veiculoDAL); return(new AbastecimentoController(abastecimentoService)); }
public ConsultasController(SeguroService seguroService, ApoliceService apoliceService, AutomovelService automovelService, AbastecimentoService abastecimentoService, ManutencaoService manutencaoService, MotoristaService motoristaService, MultaService multaService, OficinaService oficinaService, PostoService postoService, ViagemService viagemService, TodosMotoristaService todosMotoristaService, TodosAutomovelService todosAutomovelService) { _seguroService = seguroService; _apoliceService = apoliceService; _automovelService = automovelService; _abastecimentoService = abastecimentoService; _manutencaoService = manutencaoService; _motoristaService = motoristaService; _multaService = multaService; _oficinaService = oficinaService; _postoService = postoService; _viagemService = viagemService; _todosMotorstaService = todosMotoristaService; _todosAutomovelService = todosAutomovelService; }
public AbastecimentoController() { veiculoService = new VeiculoService(); abastecimentoService = new AbastecimentoService(); pessoaJuridicaService = new PessoaJuridicaService(); }
public AbastecimentoController(AbastecimentoService abastecimentoService) { _abastecimentoService = abastecimentoService; }