Example #1
0
        public OrcamentoController(IOrcamentoRepository business, Resposta <CamposOrcamento> response, IHttpContextAccessor _acessor, IConfiguration config)
        {
            this.response = response;
            this.business = business;
            this._config  = config;

            this.chaveAPI = _acessor.HttpContext.Request.Headers["ChaveAPI"].ToString();
        }
Example #2
0
 public RelatorioAppService(
     ILancamentoRepository lancamentoRepository,
     IOrcamentoRepository orcamentoRepository,
     ILancamentoAppService lancamentoAppService)
 {
     this.lancamentoRepository = lancamentoRepository;
     this.orcamentoRepository  = orcamentoRepository;
     this.lancamentoAppService = lancamentoAppService;
 }
Example #3
0
 public MaterialAppService(IMaterialRepository MaterialRepository,
                           IOrcamentoRepository orcamentoRepository,
                           ICentroCustoRepository centroCustoRepository,
                           MessageQueue messageQueue)
     : base(messageQueue)
 {
     this.materialRepository    = MaterialRepository;
     this.orcamentoRepository   = orcamentoRepository;
     this.centroCustoRepository = centroCustoRepository;
 }
 public OrcamentoAppService(
     IUnitOfWork unitOfWork,
     IOrcamentoRepository orcamentoRepository,
     IUsuarioRepository usuarioRepository)
 {
     this.unitOfWork          = unitOfWork;
     this.orcamentoRepository = orcamentoRepository;
     this.usuarioRepository   = usuarioRepository;
     this.orcamentoValidator  = new OrcamentoValidator();
 }
Example #5
0
 public CadastroServices(IClienteRepository clienteDAO, IFuncionarioRepository funcionarioDAO, ICarroRepository carroDAO, IServicoRepository servicoDAO, IMaoDeObraRepository maoDeObraDAO, IEnderecoRepository enderecoDAO, IEmailRepository emailDAO, IOrcamentoRepository orcamentoDAO)
 {
     ClienteDAO     = clienteDAO;
     FuncionarioDAO = funcionarioDAO;
     CarroDAO       = carroDAO;
     ServicoDAO     = servicoDAO;
     MaoDeObraDAO   = maoDeObraDAO;
     EnderecoDAO    = enderecoDAO;
     EmailDAO       = emailDAO;
     OrcamentoDAO   = orcamentoDAO;
 }
Example #6
0
 public OrcamentoService(IOrcamentoRepository baseRepository, ILogRepository logRepository, ITipoProcedimentoRepository procRepository, IOrcamentoAnexoRepository anexoRepository, IOrcamentoAcompanhamentoRepository acomRepository, IOrcamentoItemRepository itemRepository, ISubProcedimentoRepository subRepository, IDenteRegiaoRepository regRepository) : base(baseRepository)
 {
     _baseRepository  = baseRepository;
     _logRepository   = logRepository;
     _procRepository  = procRepository;
     _anexoRepository = anexoRepository;
     _acomRepository  = acomRepository;
     _itemRepository  = itemRepository;
     _subRepository   = subRepository;
     _regRepository   = regRepository;
 }
Example #7
0
 public CompraController(ICompraRepository compraRepository,
                         IStatusRepository statusRepository,
                         IUsuarioRepository usuarioRepository,
                         ICategoriaRepository categoriaRepository,
                         IOrcamentoRepository orcamentoRepository)
 {
     _orcamentoRepository = orcamentoRepository;
     _statusRepository    = statusRepository;
     _usuarioRepository   = usuarioRepository;
     _compraRepository    = compraRepository;
     _categoriaRepository = categoriaRepository;
 }
Example #8
0
 public ComprasController(IComprasRepository compras, IStatusRepository status,
                          IUsuarioRepository usuario, ICategoriaRepository categoria,
                          IOrcamentoRepository orcamento, IBaseValida baseValida,
                          IPerfilRepository perfil)
 {
     _perfilRepository    = perfil;
     _comprasRepository   = compras;
     _statusRepository    = status;
     _usuarioRepository   = usuario;
     _categoriaRepository = categoria;
     _orcamentoRepository = orcamento;
     _baseValida          = baseValida;
 }
Example #9
0
 public OrcamentoAppService(IOrcamentoRepository orcamentoRepository,
                            IParametrosOrcamentoRepository parametrosOrcamentoRepository,
                            ICentroCustoRepository centroCustoRepository,
                            ICotacaoValoresRepository cotacaoValoresRepository,
                            IIndiceFinanceiroRepository indiceFinanceiroRepository,
                            MessageQueue messageQueue)
     : base(messageQueue)
 {
     this.orcamentoRepository           = orcamentoRepository;
     this.parametrosOrcamentoRepository = parametrosOrcamentoRepository;
     this.centroCustoRepository         = centroCustoRepository;
     this.cotacaoValoresRepository      = cotacaoValoresRepository;
     this.indiceFinanceiroRepository    = indiceFinanceiroRepository;
 }
Example #10
0
 public OrcamentoService(IOrcamentoRepository orcamentoRepository, MetodosGenericosService metodosGenericosService,
                         PessoaService pessoaService, ItensOrcamentoGeralService itensOrcamentoGeralService,
                         MaoObraOrcamentoService maoObraOrcamentoService, EquipamentoOrcamentoService equipamentoOrcamentoService,
                         MaterialOrcamentoService materialOrcamentoService, CustoOrcamentoService custoOrcamentoService,
                         TotaisOrcamentoRepository totaisOrcamentoRepository)
 {
     this.OrcamentoRepository         = orcamentoRepository;
     this.MetodosGenericosService     = metodosGenericosService;
     this.PessoaService               = pessoaService;
     this.ItensOrcamentoGeralService  = itensOrcamentoGeralService;
     this.MaoObraOrcamentoService     = maoObraOrcamentoService;
     this.EquipamentoOrcamentoService = equipamentoOrcamentoService;
     this.MaterialOrcamentoService    = materialOrcamentoService;
     this.CustoOrcamentoService       = custoOrcamentoService;
     this.TotaisOrcamentoRepository   = totaisOrcamentoRepository;
 }
Example #11
0
        //Construtor
        public CategoriaValidator(
            ICategoriaRepository categoriaRepository,
            IDespesaRepository despesaRepository,
            ILancamentoRepository lancamentoRepository,
            IOrcamentoRepository orcamentoRepository)
        {
            this.categoriaRepository  = categoriaRepository;
            this.despesaRepository    = despesaRepository;
            this.lancamentoRepository = lancamentoRepository;
            this.orcamentoRepository  = orcamentoRepository;


            RuleSet("Cadastro", () =>
            {
                UsuarioIdObrigatorio();
                NomeObrigatorio();
                TipoObrigatorio();
                NomeTamanhoInvalido();
                TipoTamanhoInvalido();
                NomeNaoDuplicado();
            });

            RuleSet("Edicao", () =>
            {
                IdObrigatorio();
                UsuarioIdObrigatorio();
                NomeObrigatorio();
                TipoObrigatorio();
                NomeTamanhoInvalido();
                TipoTamanhoInvalido();
                NomeNaoDuplicado();
                UsuarioCadastroValido();
            });

            RuleSet("Exclusao", () =>
            {
                IdValidoExistente();
                UsuarioCadastroValido();
                CategoriasVinculadas();
                DespesasVinculadas();
                LancamentosVinculados();
                OrcamentosVinculados();
            });
        }
Example #12
0
        public CategoriaAppService(
            IUnitOfWork unitOfWork,
            ICategoriaRepository categoriaRepository,
            IDespesaRepository despesaRepository,
            ILancamentoRepository lancamentoRepository,
            IOrcamentoRepository orcamentoRepository)
        {
            this.unitOfWork           = unitOfWork;
            this.categoriaRepository  = categoriaRepository;
            this.despesaRepository    = despesaRepository;
            this.lancamentoRepository = lancamentoRepository;
            this.orcamentoRepository  = orcamentoRepository;

            this.categoriaValidator = new CategoriaValidator(
                categoriaRepository,
                despesaRepository,
                lancamentoRepository,
                orcamentoRepository);
        }
Example #13
0
 public OrcamentoServices(IOrcamentoRepository orcamentoRepository, IMapper mapper)
 {
     _orcamentoRepository = orcamentoRepository;
     _mapper = mapper;
 }
Example #14
0
 public OrcamentoController(IOrcamentoRepository orcamentoRepository)
 {
     _orcamentoRepository = orcamentoRepository;
 }
 public OrcamentosController(IOrcamentoRepository orcamentoRepository, IMapper mapper)
 {
     _mapper   = mapper;
     _contexto = orcamentoRepository;
 }
Example #16
0
 public OrcamentoService(IOrcamentoRepository orcamentoRepository
                         , INotificador notificador) : base(notificador)
 {
     _orcamentoRepository = orcamentoRepository;
 }
Example #17
0
 public void Inicializa()
 {
     repositoryMock = new Mock <IOrcamentoRepository>();
     repository     = repositoryMock.Object;
 }
 public OrcamentoService(IOrcamentoRepository orcamentoRepository)
     : base(orcamentoRepository)
 {
     _orcamentoRepository = orcamentoRepository;
 }
 public PedidoController(IOrcamentoRepository orcamentos, IStatusPedidoRepository pedidos)
 {
     Orcamentos = orcamentos;
     Pedidos    = pedidos;
 }
 public OrcamentoService(IOrcamentoRepository receitaRepository, IOrcamentoReadOnlyRepository orcamentoReadOnlyRepository)
 {
     _orcamentoRepository         = receitaRepository;
     _orcamentoReadOnlyRepository = orcamentoReadOnlyRepository;
 }