public RelatorioServiceTests() { mocks = new Mocks(); abastecimentoRepository = Substitute.For <IAbastecimentoRepository>(); abastecimentoRepository.GetAll().Returns(mocks.GetMocksAbastecimentosAno()); relatorioService = new RelatorioService(abastecimentoRepository); }
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; }
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; }
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))); }
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)); }
public RelatorioController(IRelatorioService relatorioService) { this.relatorioService = relatorioService; }
public RelatoriosController(IRelatorioService service, IClienteRepository clienteRepository) { _service = service; _clienteRepository = clienteRepository; }
public RelatorioFaturamentoController(IClienteService clienteService, IRelatorioService relatorioService) { _clienteService = clienteService; _relatorioService = relatorioService; _mapper = new AutoMapperRelatorioFaturamento(); }
public RelatorioController(IRelatorioService relatorioService, IAutenticacaoService autenticacaoService) { this._autenticacaoService = autenticacaoService; this._relatorioService = relatorioService; }
public RelatoriosController(IRelatorioService relatorioService) { _relatorioService = relatorioService; }
public RelatorioController(ILogger <RelatorioController> logger, IRelatorioService relatorioService) { _logger = logger; _relatorioService = relatorioService; }
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; }