public EventBusRabbitMqConsumer(IRabbitMqConnection connection, IMediator mediator, IMapper mapper, IOrderPepository repository) { _connection = connection ?? throw new ArgumentNullException(nameof(connection)); _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _repository = repository ?? throw new ArgumentNullException(nameof(repository)); }
public GetOrderByUserNameHandler(IOrderPepository orderRepository) { _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); }
public CheckoutOrderHandler(IOrderPepository orderRepository) { _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); }