public RelatorioServiceTests()
        {
            mocks = new Mocks();

            abastecimentoRepository = Substitute.For <IAbastecimentoRepository>();
            abastecimentoRepository.GetAll().Returns(mocks.GetMocksAbastecimentosAno());

            relatorioService = new RelatorioService(abastecimentoRepository);
        }
Пример #2
0
 public RelatorioController(IProntuarioService service, IPacienteService servicePaciente, ICadastroService serviceCadastro, IUsuarioService serviceUsuario, IFuncionarioService serviceFuncionario, IRelatorioService serviceRelatorio) : base(serviceUsuario)
 {
     _service            = service;
     _servicePaciente    = servicePaciente;
     _serviceCadastro    = serviceCadastro;
     _serviceFuncionario = serviceFuncionario;
     _serviceRelatorio   = serviceRelatorio;
     _serviceUsuario     = serviceUsuario;
 }
Пример #3
0
 public ProdutoAdminController(INotificador notificador,
                               IProdutoRepository produtoRepository,
                               IProdutoService produtoService,
                               IRelatorioService relatorioService,
                               IMapper mapper,
                               IAspNetUser user) : base(notificador, user)
 {
     _produtoRepository = produtoRepository;
     _produtoService    = produtoService;
     _mapper            = mapper;
     _relatorioService  = relatorioService;
 }
Пример #4
0
        public async Task <IActionResult> ObterRelatorioSincrono([FromServices] IRelatorioService relatorioService)
        {
            var dto = new RelatorioSincronoDto
            {
                CaminhoRelatorio = _caminhoRelatorio,
                Formato          = FormatoEnum.Pdf,
                IgnorarPaginacao = true,
                Interativo       = false,
                Pagina           = 1
            };

            return(Ok(await relatorioService.GetRelatorioSincrono(dto)));
        }
Пример #5
0
 public AcompanhamentoDiarioController(IClienteService clienteService,
                                       IContratoService contratoService,
                                       IProfissionalService profissionalService,
                                       IRelatorioService relatorioService)
 {
     _clienteService      = clienteService;
     _contratoService     = contratoService;
     _profissionalService = profissionalService;
     _relatorioService    = relatorioService;
     _contratoMapper      = new AutoMapperContrato();
     _clienteMapper       = new AutoMapperCliente();
     _profissionalMapper  = new AutoMapperProfissional();
     _filtrosMapper       = new AutoMapperAcompanhamentoDiario();
 }
 public RelatorioGamesCommandHandler(IExecucaoRelatorioService execucaoRelatorioService, IRelatorioService relatorioService)
 {
     this.execucaoRelatorioService = execucaoRelatorioService ?? throw new ArgumentNullException(nameof(execucaoRelatorioService));
     this.relatorioService         = relatorioService ?? throw new ArgumentNullException(nameof(relatorioService));
 }
Пример #7
0
 public RelatorioController(IRelatorioService relatorioService)
 {
     this.relatorioService = relatorioService;
 }
Пример #8
0
 public RelatoriosController(IRelatorioService service, IClienteRepository clienteRepository)
 {
     _service           = service;
     _clienteRepository = clienteRepository;
 }
Пример #9
0
 public RelatorioFaturamentoController(IClienteService clienteService, IRelatorioService relatorioService)
 {
     _clienteService = clienteService;
     _relatorioService = relatorioService;
     _mapper = new AutoMapperRelatorioFaturamento();
 }
Пример #10
0
 public RelatorioController(IRelatorioService relatorioService,
                            IAutenticacaoService autenticacaoService)
 {
     this._autenticacaoService = autenticacaoService;
     this._relatorioService    = relatorioService;
 }
Пример #11
0
 public RelatoriosController(IRelatorioService relatorioService)
 {
     _relatorioService = relatorioService;
 }
Пример #12
0
 public RelatorioController(ILogger <RelatorioController> logger,
                            IRelatorioService relatorioService)
 {
     _logger           = logger;
     _relatorioService = relatorioService;
 }
Пример #13
0
 public RelatorioHorasController(IProfissionalService profissionalService, IRelatorioService relatorioService)
 {
     _profissionalService = profissionalService;
     _relatorioService    = relatorioService;
     _mapper = new AutoMapperRelatorioHoras();
 }
 public RelatorioController(IRelatorioService relatorioService, IMapper mapper, Notificador notificador)
 {
     _relatorioService = relatorioService;
     _mapper           = mapper;
     _notificador      = notificador;
 }
 public ProcessaArquivoService(IRelatorioService relatorioService, IArquivoService arquivoService)
 {
     this.relatorioService = relatorioService;
     this.arquivoService   = arquivoService;
 }