public BasketController(IBasketBusiness _basketBusiness) { basketBusiness = _basketBusiness; }
public BasketController(IBasketBusiness basketBusiness, IMapper mapper, EventBusRabbitMqProducer eventBus) { _basketBusiness = basketBusiness ?? throw new ArgumentNullException(nameof(basketBusiness)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); }
public BasketController(IBasketBusiness basketBusiness) { _basketBusiness = basketBusiness; }