public CouponCodeValidator(ICouponCodeRepository couponCodeRepository, IProductCategoryRepository productCategoryRepository, IProductRepository productRepository, ICustomerRepository customerRepository)
 {
     _couponCodeRepository      = couponCodeRepository ?? throw new ArgumentNullException(nameof(couponCodeRepository));
     _productCategoryRepository = productCategoryRepository ?? throw new ArgumentNullException(nameof(productCategoryRepository));
     _productRepository         = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _customerRepository        = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
 }
Beispiel #2
0
 public SaleValidator(ICustomerRepository customerRepository, ICouponCodeRepository couponCodeRepository, IProductRepository productRepository, IProductVariantRepository productVariantRepository, IAddressRepository addressRepository)
 {
     _customerRepository       = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
     _couponCodeRepository     = couponCodeRepository ?? throw new ArgumentNullException(nameof(couponCodeRepository));
     _productRepository        = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _productVariantRepository = productVariantRepository ?? throw new ArgumentNullException(nameof(productVariantRepository));
     _addressRepository        = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
 }
Beispiel #3
0
 public SaleService(ISaleValidator saleValidator, ISaleRepository saleRepository, ICustomerRepository customerRepository, IAddressRepository addressRepository, IOrderRepository orderRepository, ISaleDetailRepository saleDetailRepository, IInvoiceRepository invoiceRepository, IProductRepository productRepository, IDeliveryRepository deliveryRepository, ICouponCodeRepository couponCodeRepository, IPaymentProviderFactory paymentProviderFactory)
 {
     _saleValidator          = saleValidator ?? throw new ArgumentNullException(nameof(saleValidator));
     _saleRepository         = saleRepository ?? throw new ArgumentNullException(nameof(saleRepository));
     _customerRepository     = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
     _addressRepository      = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     _orderRepository        = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _saleDetailRepository   = saleDetailRepository ?? throw new ArgumentNullException(nameof(saleDetailRepository));
     _invoiceRepository      = invoiceRepository ?? throw new ArgumentNullException(nameof(invoiceRepository));
     _productRepository      = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _deliveryRepository     = deliveryRepository ?? throw new ArgumentNullException(nameof(deliveryRepository));
     _couponCodeRepository   = couponCodeRepository ?? throw new ArgumentNullException(nameof(couponCodeRepository));
     _paymentProviderFactory = paymentProviderFactory ?? throw new ArgumentNullException(nameof(paymentProviderFactory));
 }
Beispiel #4
0
 public CouponCodeService(ICouponCodeRepository couponCodeRepository, ICouponCodeValidator couponCodeValidator)
 {
     _couponCodeRepository = couponCodeRepository ?? throw new ArgumentNullException(nameof(couponCodeRepository));
     _couponCodeValidator  = couponCodeValidator ?? throw new ArgumentNullException(nameof(couponCodeValidator));
 }
 public ResponsesController(IResponseRepository surveyResponseRepository, ICouponCodeRepository couponCodeRepository)
 {
     _surveyResponseRepository = surveyResponseRepository;
     _couponCodeRepository     = couponCodeRepository;
 }
 public UsersController(IUserRepository userRepository, ICouponCodeRepository couponCodeRepository)
 {
     _userRepository       = userRepository;
     _couponCodeRepository = couponCodeRepository;
 }