public DiscountFacade(IUnitOfWork unitOfWork, IDiscountDataService discountDataService, IProductDataService productDataService, IProductCategoryDataService productCategoryDataService) { _unitOfWork = unitOfWork; _discountDataService = discountDataService; _productDataService = productDataService; _productCategoryDataService = productCategoryDataService; }
public ProductDataController(IHttpContextAccessor contextAccessor, ILogger <ProductDataController> logger, IProductDataService productDataService) : base(contextAccessor, logger) { this.productDataService = productDataService; }
public CommonStatisticsDashboardWidgetDataCreator(IOrderDataService orderDataService, IUserDataService userDataService, IAppRoleManager roleManager, IProductDataService productDataService) { _orderDataService = orderDataService; _userDataService = userDataService; _roleManager = roleManager; _productDataService = productDataService; }
public MyTestProductBzService(IKernel kernel) { _kernel = kernel; productService = kernel.TryGet<IProductDataService>() ?? new ProductDataService(); }
public ProductController(IProductDataService productDataService, IBrandDataService brandDataService, IOrderRepository orderRepo, IOrderItemRepository orderItemRepo, IOrderLogRepository orderLogRepo, IProductRepository productRepo, IFavoriteRepository favoriteRepo, IPromotionRepository promotionRepo, IOrder2ExRepository orderexRepo, IRMA2ExRepository rmaexRepo, IInventoryRepository inventoryRepo) { _productDataService = productDataService; _passHelper = new PassHelper(brandDataService); _orderRepo = orderRepo; _orderItemRepo = orderItemRepo; _orderLogRepo = orderLogRepo; _productRepo = productRepo; _favoriteRepo = favoriteRepo; _promotionRepo = promotionRepo; _orderexRepo = orderexRepo; _rmaexRepo = rmaexRepo; _inventoryRepo = inventoryRepo; }
public ProductDataController(IProductDataService productDataService, ISubcategoryService subcategoryService, IPropertyService propertyService, ISubcategoryPropertyService subcatPropService, IProductService productService) { _productDataService = productDataService; _subcategoryService = subcategoryService; _propertyService = propertyService; _subcatPropService = subcatPropService; _productService = productService; }
public CartService(IProductDataService productDataService, IWorkContext workContext, IRestrictedItemAccessManager accessManager, IUnitOfWork unitOfWork, IShoppingCartHelper shoppingCartHelper) { _productDataService = productDataService; _workContext = workContext; _accessManager = accessManager; _unitOfWork = unitOfWork; _shoppingCartHelper = shoppingCartHelper; }
public ProductsBasketFactory(ISalesHistoryService salesHistoryService, IDiscountRulesService discountRulesService, IProductDataService productDataService) { this.salesHistoryService = salesHistoryService; this.discountRulesService = discountRulesService; this.productDataService = productDataService; }
public ProductsController(IProductService productService, IMakerService makerService, IProductDataService productDataService, IPropertyService propertyService, IImageService imageService) { _productService = productService; _makerService = makerService; _productDataService = productDataService; _propertyService = propertyService; _imageService = imageService; }
public void Setup() { fakeHttpContextAccessor = A.Fake <IHttpContextAccessor>(); fakeProductDataService = A.Fake <IProductDataService>(); fakeLogger = A.Fake <ILogger <ProductDataController> >(); A.CallTo(() => fakeHttpContextAccessor.HttpContext).Returns(new DefaultHttpContext()); controller = new ProductDataController(fakeHttpContextAccessor, fakeLogger, fakeProductDataService); }
public ProductsBasket(ISalesHistoryService salesHistoryService, IDiscountRulesService discountRulesService, IProductDataService productDataService) { this.salesHistoryService = salesHistoryService ?? throw new ArgumentNullException($"{nameof(salesHistoryService)}"); this.discountRulesService = discountRulesService; this.productDataService = productDataService ?? throw new ArgumentNullException($"{nameof(productDataService)}"); products = new List <IProduct>(); }
public DataFillerService( IProductCategoryDataService productCategoryDataService, IProductDataService productDataService, IProductCodeDataService productCodeDataService) { _productCategoryDataService = productCategoryDataService; _productDataService = productDataService; _productCodeDataService = productCodeDataService; }
public ProductHubService(IAccessTokenProvider accessTokenProvider, IConfiguration config, IProductDataService productDataService, IMapper mapper, IToastService toastService) : base(accessTokenProvider, config, productDataService, mapper) { _toastService = toastService; }
public MenuItemUrlResolver(ICmsUrlBuilderFactory cmsUrlBuilderFactory, IPageDataService pageDataService, IEntityDataService entityDataService, IUserDataService userDataService, ICategoryDataService categoryDataService, IProductDataService productDataService, IProductCategoryDataService productCategoryDataService) { _cmsUrlBuilderFactory = cmsUrlBuilderFactory; _pageDataService = pageDataService; _entityDataService = entityDataService; _userDataService = userDataService; _categoryDataService = categoryDataService; _productDataService = productDataService; _productCategoryDataService = productCategoryDataService; }
public ProductDetailViewModel(IProductDataService productDataService, IDialogService dialogService) { this.productDataService = productDataService; this.dialogService = dialogService; SaveCommand = new CustomCommand(SaveProduct, CanSaveProduct); DeleteCommand = new CustomCommand(DeleteProduct, CanDeleteProduct); Messenger.Default.Register <Product>(this, OnCoffeeReceived); }
public ProductOverviewViewModel(IProductDataService productDataService, IDialogService dialogService) { this.productDataService = productDataService; this.dialogService = dialogService; LoadData(); LoadCommands(); Messenger.Default.Register <UpdateListMessage>(this, OnUpdateListMessageReceived); }
public DiscountValidator(IDiscountDataService discountDataService, IDiscountUsageDataService discountUsageDataService, IWorkContext workContext, IIdentityManager identityManager, IProductCategoryDataService productCategoryDataService, IProductDataService productDataService) { _discountDataService = discountDataService; _discountUsageDataService = discountUsageDataService; _workContext = workContext; _identityManager = identityManager; _productCategoryDataService = productCategoryDataService; _productDataService = productDataService; }
public DiscountWebClientService(IDiscountDataService discountDataService, ICurrentUserService currentUserService, IProductDataService productDataService, IProductCategoryDataService productCategoryDataService, IDiscountValidator discountValidator, IUnitOfWork unitOfWork) { _discountDataService = discountDataService; _currentUserService = currentUserService; _productDataService = productDataService; _productCategoryDataService = productCategoryDataService; _discountValidator = discountValidator; _unitOfWork = unitOfWork; _discountApplierHelper = new DiscountApplierHelper(); }
public ProductController(IProductDataService productDataService, IBrandDataService brandDataService, IOrderRepository orderRepo, IOrderItemRepository orderItemRepo, IOrderLogRepository orderLogRepo, IProductRepository productRepo) { _productDataService = productDataService; _passHelper = new PassHelper(brandDataService); _orderRepo = orderRepo; _orderItemRepo = orderItemRepo; _orderLogRepo = orderLogRepo; _productRepo = productRepo; }
public ProductSearchViewModel( IProductCodeDataService productCodeDataService, IProductDataService productDataService, IMvxMessenger messenger, IBarCodeScanner scanner) { _scanner = scanner; _productCodeDataService = productCodeDataService; _productDataService = productDataService; _messenger = messenger; _messenger.Subscribe<EntityMessage<Product>>(ProductChange); }
public DataInitializerService( IProduct_ProductCategoryDataService productProductCategoryDataService, IProductCategoryDataService productCategoryDataService, IProductDataService productDataService, IProductCodeDataService productCodeDataService, IProductPriceDataService productPriceDataService) { ToInit = new List<IHaveInit> { productProductCategoryDataService, productCategoryDataService, productDataService, productCodeDataService, productPriceDataService }; }
public ProductFacade(IEntityBuilder <Product, ProductCategory> builder, IEntitySchemeDataService schemes, IProductCategoryDataService productCategories, IProductDataService products, IDiscountDataService discounts, IUnitOfWork unitOfWork, IFileDataDataService files, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, IIdentityManager identityManager) { _builder = builder; _schemes = schemes; _productCategories = productCategories; _products = products; _discounts = discounts; _unitOfWork = unitOfWork; _files = files; _baseBeforeUpdateEntityLogics = baseBeforeUpdateEntityLogics; _identityManager = identityManager; }
public void Initialize(IExecutionLogLogger executionLogLogger, int plaFeedId, bool isIncremental, DateTime?fromTime, DateTime?effectiveFromTime, DateTime executionTime, bool isPseudoFullRun) { _executionLogLogger = executionLogLogger; _isIncrementalRun = isIncremental; _isPseudoFullRun = isPseudoFullRun; _effectiveFromTime = effectiveFromTime; // Instantiate the IFeedGeneratorIndigoCategoryService _feedGeneratorCategoryService = new FeedGeneratorIndigoCategoryService(_indigoCategoryService, _googleCategoryService, Log); // Instantiate the "caching" cms data services _feedCmsProductArchiveEntryService = new FeedGeneratorCmsDataService(_feedCmsProductArchiveEntryServiceShared, null); _pastFeedCmsProductArchiveEntryService = new FeedGeneratorCmsDataService(_feedCmsProductArchiveEntryServiceShared, fromTime); // First get rules associated with this feed _productDataService = new ProductDataService(null, _feedGeneratorCategoryService, _feedRuleService, _feedCmsProductArchiveEntryService, _feedGeneratorCategoryService, _pastFeedCmsProductArchiveEntryService); }
public ProductService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IProductDataService productDataService, IProductFacade productFacade, IUnitOfWork unitOfWork, IEntitySchemeDataService schemeDataService, IProductCategoryDataService productCategoryDataService) : base(baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, productDataService) { _productDataService = productDataService; _productFacade = productFacade; _unitOfWork = unitOfWork; _schemeDataService = schemeDataService; _productCategoryDataService = productCategoryDataService; }
public ProductCategoryService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IProductCategoryDataService categoryData, IUnitOfWork unitOfWork, IFieldDefentionFacade fieldDefentionFacade, IMetaDataDataService metaDataService, IProductDataService productDataService) : base( baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, categoryData) { _categoryData = categoryData; _unitOfWork = unitOfWork; _fieldDefentionFacade = fieldDefentionFacade; _metaDataService = metaDataService; _productDataService = productDataService; }
public ProductWebClientService(IProductDataService productDataService, IRestrictedItemAccessManager accessManager, IProductCategoryDataService productCategoryDataService, IWorkContext workContext, IUnitOfWork unitOfWork, IProductReviewDataService productReviewDataService, ISecurityLogger securityLogger, IOrderDataService orderDataService, ShoppingCartHelper shoppingCartHelper, IDiscountWebClientService discountWebClientService, ITagDataService tagDataService, ISettingService settingService, IIdentityManager identityManager, IEntitySchemeDataService schemeDataService) { _productDataService = productDataService; _accessManager = accessManager; _productCategoryDataService = productCategoryDataService; _workContext = workContext; _unitOfWork = unitOfWork; _productReviewDataService = productReviewDataService; _securityLogger = securityLogger; _orderDataService = orderDataService; _discountWebClientService = discountWebClientService; _tagDataService = tagDataService; _settingService = settingService; _identityManager = identityManager; _schemeDataService = schemeDataService; _currUserId = new Lazy <Guid>(_identityManager.GetCurrentIdentity().GetUserId().ToGuid); }
public IActionResult Index([FromServices] IProductDataService productDataService) { var nodes = new List <SitemapNode> { new SitemapNode(Url.Action("Index", "Home")), new SitemapNode(Url.Action("Index", "Contact")), new SitemapNode(Url.Action("BlogList", "Blog")), new SitemapNode(Url.Action("BlogSingle", "Blog")), new SitemapNode(Url.Action("Products", "Shop")), new SitemapNode(Url.Action("Index", "WebApiTest")), }; nodes.AddRange(productDataService.GetSections() .Select(section => new SitemapNode(Url.Action("Products", "Shop", new { SectionId = section.Id })))); nodes.AddRange(productDataService.GetBrands() .Select(brand => new SitemapNode(Url.Action("Products", "Shop", new { BrandId = brand.Id })))); nodes.AddRange(productDataService.GetProducts() .Products.Select(product => new SitemapNode(Url.Action("ProductDetails", "Shop", new { product.Id })))); return(new SitemapProvider().CreateSitemap(new SitemapModel(nodes))); }
/// <summary> /// Constructor /// </summary> public ProductBusinessService(IProductDataService productDataService) { _productDataService = productDataService; }
public ProductCategoryWidget() { _productDataService = Container.GetInstance <IProductDataService>(); _categoryDataService = Container.GetInstance <IProductCategoryDataService>(); }
public BrandsViewComponent(IProductDataService productDataService, IMapper mapper) { this.productDataService = productDataService; this.mapper = mapper; }
public ProductController(IProductDataService service) { _service = service; }
public DocumentBusinessService(IDocumentDataService documentDataService, IMapper mapper, IProductDataService productDataService) { _documentDataService = documentDataService; _mapper = mapper; _productDataService = productDataService; }
public CheckoutService(IProductDataService productService, IDiscountService discountService) { _productService = productService; _discountService = discountService; }
public ProductsController(IProductDataService dataService) { // repository = new ProductsDAO(); Repository = dataService; }
private IProductDataService _productDataService;//= new PromotionDataService(new PromotionRepository(), new FavoriteRepository(), new ShareRepository(), new CouponDataService(new CouponRepository(), new TimeSeedRepository(), new PromotionRepository(), new StoreRepository()), new CustomerRepository(), new ResourceService(new ResourceRepository())); public TestProductController(IProductDataService productDataService) { this._productDataService = productDataService; }
public MyTestProductBzService(IKernel kernel) { _kernel = kernel; productService = kernel.TryGet <IProductDataService>() ?? new ProductDataService(); }