Beispiel #1
0
 public BasketController(IBasketRepository basketRepository, ILogger <BasketController> logger,
                         IMapper mapper, IDiscountGrpcService discountGrpcService, IPublishEndpoint publishEndpoint)
 {
     _basketRepository    = basketRepository;
     _logger              = logger;
     _mapper              = mapper;
     _discountGrpcService = discountGrpcService;
     _publishEndpoint     = publishEndpoint;
 }
Beispiel #2
0
 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));
 }
Beispiel #4
0
 public BasketController(IBasketRepository repository, IDiscountGrpcService discountGrpcService)
 {
     _repository          = repository;
     _discountGrpcService = discountGrpcService;
 }