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(); }
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(); }