예제 #1
0
        public void RecuperaArvoreEstoque()
        {
            ArvoresServiceAramazen arvoresServiceAramazen = new ArvoresServiceAramazen();
            var baseMDBRepositorio = new BaseMDBRepositorio <RamalEstoque>("Catalogo", "RamalEstoque");
            RamalEstoqueService  ramalEstoqueService  = new RamalEstoqueService(baseMDBRepositorio);
            ArvoreServiceEstoque arvoreServiceEstoque = new ArvoreServiceEstoque(arvoresServiceAramazen, ramalEstoqueService);

            var lista = arvoreServiceEstoque.ListaRamaisArvore();
        }
예제 #2
0
        public void DoEstoqueAlimentaArvoreEstoque()
        {
            ArvoresServiceAramazen arvoresServiceAramazen = new ArvoresServiceAramazen();
            var baseMDBRepositorio = new BaseMDBRepositorio <RamalEstoque>("Catalogo", "RamalEstoque");
            RamalEstoqueService  ramalEstoqueService  = new RamalEstoqueService(baseMDBRepositorio);
            ArvoreServiceEstoque arvoreServiceEstoque = new ArvoreServiceEstoque(arvoresServiceAramazen, ramalEstoqueService);

            arvoreServiceEstoque.CarregaRamaisEstoque();
        }