public BasketController(IBasketRepository repository, DiscountGrpcService discountGrpcService, IMapper mapper, IPublishEndpoint publishEndpoint)
 {
     this.repository          = repository;
     this.discountGrpcService = discountGrpcService;
     this.mapper          = mapper;
     this.publishEndpoint = publishEndpoint;
 }
Beispiel #2
0
 public BasketController(IBasketRepository repository, DiscountGrpcService discountGrpcService, IPublishEndpoint publishEndpoint, IMapper mapper)
 {
     _repository          = repository ?? throw new ArgumentNullException(nameof(repository));
     _discountGrpcService = discountGrpcService ?? throw new ArgumentNullException(nameof(discountGrpcService));
     _publishEndpoint     = publishEndpoint ?? throw new ArgumentNullException(nameof(publishEndpoint));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public BasketController(IBasketRepository repository, DiscountGrpcService discountGrpcService, IPublishEndpoint publishEndpoint, IMapper mapper)
 {
     _repository          = repository;
     _discountGrpcService = discountGrpcService;
     _publishEndpoint     = publishEndpoint;
     _mapper = mapper;
 }
 public BasketController(IBasketRepository basketRepository, IMapper mapper, DiscountGrpcService discountGrpcService, IPublishEndpoint publishEndpoint)
 {
     _basketRepository    = basketRepository;
     _mapper              = mapper;
     _discountGrpcService = discountGrpcService;
     _publishEndpoint     = publishEndpoint;
 }
Beispiel #5
0
 public BasketController(IBasketRepository repository, DiscountGrpcService discountGrpcService,
                         IMapper mapper, IPublishEndpoint eventBus)
 {
     _repository          = repository;
     _discountGrpcService = discountGrpcService;
     _mapper   = mapper;
     _eventBus = eventBus;
 }
Beispiel #6
0
 public CartController(ICartRepo repo, DiscountGrpcService discountGrpcService, IMapper mapper,
                       IPublishEndpoint publishEndpoint)
 {
     _repo = repo;
     _discountGrpcService = discountGrpcService;
     _mapper          = mapper;
     _publishEndpoint = publishEndpoint;
 }
Beispiel #7
0
 public BasketController(IBasketRepository basketRepo, DiscountGrpcService discountGrpcService,
                         IMapper mapper, IPublishEndpoint publishEnpoint)
 {
     _basketRepo          = basketRepo ?? throw new ArgumentNullException(nameof(basketRepo));
     _discountGrpcService = discountGrpcService ?? throw new ArgumentNullException(nameof(discountGrpcService));
     _mapper         = mapper;
     _publishEnpoint = publishEnpoint;
 }
Beispiel #8
0
 public BasketController(IBasketRepository basketRepository, ILogger <BasketController> logger, DiscountGrpcService discountRGrpcService, IMapper mapper, IPublishEndpoint publishEndpoint)
 {
     _basketRepository     = basketRepository ?? throw new ArgumentException(nameof(basketRepository));
     _logger               = logger ?? throw new ArgumentException(nameof(logger));
     _discountRGrpcService = discountRGrpcService ?? throw new ArgumentException(nameof(discountRGrpcService));
     _mapper               = mapper ?? throw new ArgumentException(nameof(mapper));
     _publishEndpoint      = publishEndpoint ?? throw new ArgumentException(nameof(publishEndpoint));
 }
 public CartItemsController(
     DiscountGrpcService discountGrpcService,
     ICartItemsService cartItemsService,
     IRedisCacheService cacheService,
     IMapper mapper)
 {
     _discountGrpcService = discountGrpcService;
     _cartItemsService    = cartItemsService;
     _cacheService        = cacheService;
     _mapper = mapper;
 }
 public BasketController(IBasketRepository repository, DiscountGrpcService discountGrpcService)
 {
     _repository          = repository ?? throw new ArgumentNullException(nameof(repository));
     _discountGrpcService = discountGrpcService ?? throw new ArgumentNullException(nameof(discountGrpcService));
 }
 public BasketController(IBasketRepository repository, DiscountGrpcService discountGrpcService)
 {
     _repository          = repository;
     _discountGrpcService = discountGrpcService;
 }
 public BasketController(IBasketRepository basketRepository, DiscountGrpcService discountGrpcService, ILogger <BasketController> logger)
 {
     this.basketRepository    = basketRepository ?? throw new ArgumentNullException(nameof(basketRepository));
     this.discountGrpcService = discountGrpcService ?? throw new ArgumentNullException(nameof(discountGrpcService));
     this.logger = logger ?? throw new ArgumentNullException(nameof(Logger <BasketController>));
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the <seealso cref="BasketController"/> WebAPI controller.
 /// </summary>
 /// <param name="basketRepository">Basket data repository dependency instance.</param>
 /// <param name="discountGrpcService">Grpc Discount service dependency instance.</param>
 public BasketController(DiscountGrpcService discountGrpcService, IBasketRepository basketRepository)
 {
     _basketRepository    = basketRepository ?? throw new ArgumentNullException(nameof(basketRepository));
     _discountGrpcService = discountGrpcService ?? throw new ArgumentNullException(nameof(discountGrpcService));
 }