Example #1
0
 public FundamentosController(IUnitOfWork unitOfWork, IMapper mapper, ILogger <FundamentosController> logger, IFundamentoService fundamentoService)
 {
     _unitOfWork        = unitOfWork;
     _mapper            = mapper;
     _logger            = logger;
     _fundamentoService = fundamentoService;
 }
Example #2
0
 public PapeisController(IUnitOfWork unitOfWork,
                         IFundamentoService fundamentoService,
                         IHistoricoService historicoService,
                         ILogger <PapeisController> logger,
                         IMapper mapper,
                         INoticiaService noticiaService)
 {
     _unitOfWork        = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _fundamentoService = fundamentoService ?? throw new ArgumentNullException(nameof(fundamentoService));
     _historicoService  = historicoService ?? throw new ArgumentNullException(nameof(historicoService));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _noticiaService    = noticiaService ?? throw new ArgumentNullException(nameof(noticiaService));
 }