Пример #1
0
 public BasketController(ILogger <BasketController> logger, IBasketRepository repository, IMapper mapper, EventBusRabbitMqProducer eventBus)
 {
     _logger     = logger;
     _repository = repository;
     _mapper     = mapper;
     _eventBus   = eventBus;
 }
 public BasketController(IBasketRepository basketRepository, ILogger <BasketController> basketControllerLogger,
                         IMapper mapper, EventBusRabbitMqProducer eventBusRabbitMqProducer)
 {
     _basketRepository       = basketRepository;
     _basketControllerLogger = basketControllerLogger;
     _mapper = mapper;
     _eventBusRabbitMqProducer = eventBusRabbitMqProducer;
 }
 public BasketController(IBasketRepository repository, IMapper mapper, EventBusRabbitMqProducer eventBus)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _eventBus   = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
 }
Пример #4
0
 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));
 }
Пример #5
0
 public DiaryController(IMapper mapper, IDiaryNoteRepository repository, EventBusRabbitMqProducer eventBus)
 {
     _mapper     = mapper;
     _eventBus   = eventBus;
     _repository = repository;
 }
 public BasketController(IBasketRepository basketRepository, EventBusRabbitMqProducer eventBus)
 {
     _basketRepository = basketRepository;
     _eventBus         = eventBus;
 }
Пример #7
0
 public CartController(ICartRepo repo, EventBusRabbitMqProducer eventBus, IMapper mapper)
 {
     _eventBus = eventBus;
     _mapper   = mapper;
     _repo     = repo;
 }
 public BasketController(IBasketRepository basketRepository, EventBusRabbitMqProducer eventBus, IMapper mapper)
 {
     _basketRepository = basketRepository;
     _eventBus         = eventBus;
     _mapper           = mapper;
 }