Beispiel #1
0
        public ServicoExternoController()
        {
            Banco             banco             = new Banco();
            ServicoExternoDAL servicoExternoDAL = new ServicoExternoDAL(banco);
            ManutencaoDAL     manutencaoDAL     = new ManutencaoDAL(banco);
            AbastecimentoDAL  abastecimentoDAL  = new AbastecimentoDAL(banco);
            EntradaSaidaDAL   entradaSaidaDAL   = new EntradaSaidaDAL(banco);
            SeguroDAL         seguroDAL         = new SeguroDAL(banco);

            _servicoExternoService = new ServicoExternoService(servicoExternoDAL, manutencaoDAL, abastecimentoDAL, entradaSaidaDAL, seguroDAL);
        }
Beispiel #2
0
        private ServicoExternoController InstanciarCamadas()
        {
            Banco                 banco                 = new Banco();
            ServicoExternoDAL     servicoExternoDAL     = new ServicoExternoDAL(banco);
            ManutencaoDAL         manutencaoDAL         = new ManutencaoDAL(banco);
            AbastecimentoDAL      abastecimentoDAL      = new AbastecimentoDAL(banco);
            EntradaSaidaDAL       entradaSaidaDAL       = new EntradaSaidaDAL(banco);
            SeguroDAL             seguroDAL             = new SeguroDAL(banco);
            ServicoExternoService servicoExternoService = new ServicoExternoService(servicoExternoDAL, manutencaoDAL, abastecimentoDAL, entradaSaidaDAL, seguroDAL);

            return(new ServicoExternoController(servicoExternoService));
        }
Beispiel #3
0
 public ServicoExternoController(ServicoExternoService servicoExternoService)
 {
     _servicoExternoService = servicoExternoService;
 }