Exemplo n.º 1
0
        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));
        }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 5
0
 public AbastecimentoController(AbastecimentoService abastecimentoService)
 {
     _abastecimentoService = abastecimentoService;
 }