public BasketController(IBasketRepository basketRepository, ILogger <BasketController> logger, IMapper mapper, IDiscountGrpcService discountGrpcService, IPublishEndpoint publishEndpoint) { _basketRepository = basketRepository; _logger = logger; _mapper = mapper; _discountGrpcService = discountGrpcService; _publishEndpoint = publishEndpoint; }
public BasketController(IBasketRepository basketRepository, IDiscountGrpcService discountGrpcService, IPublishEndpoint publishEndpoint, IMapper mapper, ILogger <BasketController> logger) { _basketRepository = basketRepository ?? throw new ArgumentNullException(nameof(basketRepository)); _discountGrpcService = discountGrpcService ?? throw new ArgumentNullException(nameof(discountGrpcService)); _publishEndpoint = publishEndpoint ?? throw new ArgumentNullException(nameof(publishEndpoint)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public BasketController(IBasketRepository repository, IDiscountGrpcService discountGrIDiscountGrpcService) { _basketRepository = repository ?? throw new ArgumentNullException(nameof(repository)); _discountGrIDiscountGrpcService = discountGrIDiscountGrpcService ?? throw new ArgumentNullException(nameof(discountGrIDiscountGrpcService)); }
public BasketController(IBasketRepository repository, IDiscountGrpcService discountGrpcService) { _repository = repository; _discountGrpcService = discountGrpcService; }