Esempio n. 1
0
 public TransactionBehaviour(TransacoesFinanceirasContext dbContext,
                             ITransacoesFinanceirasIntegrationEventService transacoesFinanceirasIntegrationEventService,
                             ILogger <TransactionBehaviour <TRequest, TResponse> > logger)
 {
     _dbContext = dbContext ?? throw new ArgumentException(nameof(TransacoesFinanceirasContext));
     _transacoesFinanceirasIntegrationEventService = transacoesFinanceirasIntegrationEventService ?? throw new ArgumentException(nameof(transacoesFinanceirasIntegrationEventService));
     _logger = logger ?? throw new ArgumentException(nameof(ILogger));
 }
Esempio n. 2
0
 public CriarConsumidorCommandHandler(IMediator mediator,
                                      ITransacoesFinanceirasIntegrationEventService transacoesFinanceirasIntegrationEventService,
                                      IConsumidorRepository consumidorRepository,
                                      IIdentityService identityService,
                                      ILogger <CriarConsumidorCommandHandler> logger)
 {
     _consumidorRepository = consumidorRepository ?? throw new ArgumentNullException(nameof(consumidorRepository));
     _identityService      = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mediator             = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _transacoesFinanceirasIntegrationEventService = transacoesFinanceirasIntegrationEventService ?? throw new ArgumentNullException(nameof(transacoesFinanceirasIntegrationEventService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 3
0
 public EditarConsumidorCommandHandler(
     IMediator mediator,
     IIdentityService identityService,
     IConsumidorRepository consumidorRepository,
     ITransacoesFinanceirasIntegrationEventService transacoesFinanceirasIntegrationEventService,
     ILogger <EditarConsumidorCommandHandler> logger)
 {
     _mediator             = mediator;
     _identityService      = identityService;
     _consumidorRepository = consumidorRepository;
     _transacoesFinanceirasIntegrationEventService = transacoesFinanceirasIntegrationEventService;
     _logger = logger;
 }