public ClienteAppService(IClienteService clienteService, IClienteQueryRepository clienteQueryRepository,
                          IMapper mapper, IClienteIntegrationEventService clienteIntegrationEventService)
 {
     _clienteService                 = clienteService ?? throw new ArgumentNullException(nameof(clienteService));
     _clienteQueryRepository         = clienteQueryRepository ?? throw new ArgumentNullException(nameof(clienteQueryRepository));
     _clienteIntegrationEventService = clienteIntegrationEventService ?? throw new ArgumentNullException(nameof(clienteIntegrationEventService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Esempio n. 2
0
 public ClienteCriadoDomainEventHandler(IClienteIntegrationEventService clienteIntegrationEventService)
 {
     _clienteIntegrationEventService = clienteIntegrationEventService ?? throw new ArgumentNullException(nameof(clienteIntegrationEventService));
 }