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)); }
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)); }
public EditarConsumidorCommandHandler( IMediator mediator, IIdentityService identityService, IConsumidorRepository consumidorRepository, ITransacoesFinanceirasIntegrationEventService transacoesFinanceirasIntegrationEventService, ILogger <EditarConsumidorCommandHandler> logger) { _mediator = mediator; _identityService = identityService; _consumidorRepository = consumidorRepository; _transacoesFinanceirasIntegrationEventService = transacoesFinanceirasIntegrationEventService; _logger = logger; }