// GET: /Admin/ProductType/ public ProductVariantController(IProductVariantRepository _productVariantRepository, IProductRepository _productRepository) { this.baseRepository = _productVariantRepository; this.productVariantRepository = _productVariantRepository; this.productRepository = _productRepository; }
// GET: /Admin/ProductType/ public ProductVariantController(IProductVariantRepository _productVariantRepository, IProductRepository _productRepository) { this.baseRepository = _productVariantRepository; this.productVariantRepository = _productVariantRepository; this.productRepository = _productRepository; }
public BasketValidator(IBasketRepository basketRepository, IProductRepository productRepository, IProductVariantRepository productVariantRepository, ICustomerRepository customerRepository) { _basketRepository = basketRepository ?? throw new ArgumentNullException(nameof(basketRepository)); _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _productVariantRepository = productVariantRepository ?? throw new ArgumentNullException(nameof(productVariantRepository)); _customerRepository = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository)); }
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)); }
public UmbracoApplicationCacheManagingService(IProductService productService, IProductVariantService productVariantService, IProductVariantGroupService productVariantGroupService, ICategoryService categoryService, IOrderDiscountService orderDiscountService, IProductDiscountService productDiscountService, IProductRepository productRepository, ICategoryRepository categoryRepository, IProductVariantGroupRepository productVariantGroupRepository, IProductVariantRepository productVariantRepository, IStoreService storeService, IApplicationCacheService applicationCacheService) { _productService = productService; _productVariantService = productVariantService; _productVariantGroupService = productVariantGroupService; _categoryService = categoryService; _orderDiscountService = orderDiscountService; _productDiscountService = productDiscountService; _productRepository = productRepository; _categoryRepository = categoryRepository; _productVariantGroupRepository = productVariantGroupRepository; _productVariantRepository = productVariantRepository; _storeService = storeService; _applicationCacheService = applicationCacheService; _manageUmbracoXMLCacheWhenLoadBalanced = System.Web.Configuration.WebConfigurationManager. AppSettings["uWebshopLoadBalancedNoUmbraco"] != "true"; }
public UmbracoApplicationCacheManagingService(IProductService productService, IProductVariantService productVariantService, IProductVariantGroupService productVariantGroupService, ICategoryService categoryService, IOrderDiscountService orderDiscountService, IProductDiscountService productDiscountService, IProductRepository productRepository, ICategoryRepository categoryRepository, IProductVariantGroupRepository productVariantGroupRepository, IProductVariantRepository productVariantRepository, IStoreService storeService, IApplicationCacheService applicationCacheService) { _productService = productService; _productVariantService = productVariantService; _productVariantGroupService = productVariantGroupService; _categoryService = categoryService; _orderDiscountService = orderDiscountService; _productDiscountService = productDiscountService; _productRepository = productRepository; _categoryRepository = categoryRepository; _productVariantGroupRepository = productVariantGroupRepository; _productVariantRepository = productVariantRepository; _storeService = storeService; _applicationCacheService = applicationCacheService; _manageUmbracoXMLCacheWhenLoadBalanced = System.Web.Configuration.WebConfigurationManager. AppSettings["uWebshopLoadBalancedNoUmbraco"] != "true"; }
public ProductVariantService(IProductVariantRepository productVariantRepository) : base(productVariantRepository) { }
public ProductVariantService(IProductVariantRepository productVariantRepository, IProductVariantValidator productVariantValidator) { _productVariantRepository = productVariantRepository ?? throw new ArgumentNullException(nameof(productVariantRepository)); _productVariantValidator = productVariantValidator ?? throw new ArgumentNullException(nameof(productVariantValidator)); }
/// <summary> /// Initializes a new instance of the <see cref="ProductRepository"/> class. /// </summary> /// <param name="work"> /// The work. /// </param> /// <param name="cache"> /// The cache. /// </param> /// <param name="productVariantRepository"> /// The product variant repository. /// </param> public ProductRepository(IDatabaseUnitOfWork work, IRuntimeCacheProvider cache, IProductVariantRepository productVariantRepository) : base(work, cache) { Mandate.ParameterNotNull(productVariantRepository, "productVariantRepository"); _productVariantRepository = productVariantRepository; }
public ProductVariantService(IProductVariantRepository repository) // Dependency Injection repository. { _repository = repository; }
public ProductVariantService(IProductVariantRepository iProductVariantRepository) { this._iProductVariantRepository = iProductVariantRepository; }