public IncomesController(IDocumentService<IncomeEFModel> incomeService, ICatalogService<ProductEFModel> productService, ICatalogService<SizeEFModel> sizeService) { this.incomeService = incomeService; this.productService = productService; this.sizeService = sizeService; }
public ShoppingCartController(IOrchardServices orchardServices, ICatalogService catalogService, IShoppingCartService shoppingCartService) : base(orchardServices) { _orchardServices = orchardServices; _catalogService = catalogService; _shoppingCartService = shoppingCartService; }
public CatalogSearchServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService) { _catalogRepositoryFactory = catalogRepositoryFactory; _itemService = itemService; _catalogService = catalogService; _categoryService = categoryService; }
public OrderControllerService(IOrderRepository orderRepository, ICatalogService catalogService, IOrderRequestService requestService, IShipmentService shipmentService ) { _orderRepository = orderRepository; _catalogService = catalogService; _requestService = requestService; _shipmentService = shipmentService; }
/// <VIEW TO EF CONVERTERS> /// /// </VIEW TO EF CONVERTERS> // Converts View Color model to the EF Color Model public static ColorEFModel ToDomainModel(this ColorMVCModel colorModel, ICatalogService<ColorEFModel> colorService) { if (colorModel == null) { return null; } var colorDomain = colorService.GetById(colorModel.Id); if (colorDomain == null) { throw new ArgumentException(String.Format("Color with ID={0} not found.", colorModel.Id), "colorModel.Id"); } return colorDomain; /*Color colorDomain; if (colorModel.IsFolder) colorDomain = colorService.CreateFolder(); else colorDomain = colorService.CreateItem(); colorDomain.Id = colorModel.Id; colorDomain.Comment = colorModel.Comment; colorDomain.Name = colorModel.Name; colorDomain.GUID = colorModel.GUID; colorDomain.Code = colorModel.Code;*/ }
public PricingModuleController(IPricingService pricingService, IItemService itemService, ICatalogService catalogService, IPricingExtensionManager extensionManager) { _extensionManager = extensionManager; _pricingService = pricingService; _itemService = itemService; _catalogService = catalogService; }
// Updates income model properties from Domain model by their ID's. /*public static void UpdateModelPropertiesFromDomainModel(this IncomeMVCModel incomeParam, ICatalogService<Product> productService, ICatalogService<Size> sizeService) { if (incomeParam.Products == null) { incomeParam.Products = new List<IncomeMVCModel.ProductDetailsModel>(); } foreach (var productDetails in incomeParam.Products) { // Updating products. var productDomain = productService.GetById(productDetails.Product.Id); if (productDomain == null) { throw new ArgumentNullException("productDetails.Product.Id"); } productDetails.Product = productDomain.ToViewModel(); // Updating sizes. foreach (var sizeDetails in productDetails.Sizes) { var sizeDomain = sizeService.GetById(sizeDetails.Size.Id); if (sizeDomain == null) { throw new ArgumentNullException("sizeDetails.Size.Id"); } sizeDetails.Size = sizeDomain.ToViewModel(); } }; }*/ // Updates income model properties from EF model by their ID's. public static void UpdateModelPropertiesFromDomainModel(this IncomeMVCModel incomeParam, ICatalogService<ProductEFModel> productService, ICatalogService<SizeEFModel> sizeService) { if (incomeParam.Products == null) { incomeParam.Products = new List<IncomeMVCModel.ProductDetailsModel>(); } foreach (var productDetails in incomeParam.Products) { // Updating products. var productDomain = productService.GetById(productDetails.Product.Id); if (productDomain == null) { throw new ArgumentNullException("productDetails.Product.Id"); } productDetails.Product = productDomain.ToViewModel(); // Updating sizes. foreach (var sizeDetails in productDetails.Sizes) { var sizeDomain = sizeService.GetById(sizeDetails.Size.Id); if (sizeDomain == null) { throw new ArgumentNullException("sizeDetails.Size.Id"); } sizeDetails.Size = sizeDomain.ToViewModel(); } }; }
public void Startup() { _orderRepository = new TestOrderRepository(); _catalogRepository = new TestCatalogRepository(); _addressValidation = new TestAddressValidator(); _shippingRepository = new TestShippingRepository(); _shippingService = new SimpleShippingService(_shippingRepository); _taxRepository = new TestTaxRepository(); _taxService = new RegionalSalesTaxService(_taxRepository); _orderService = new OrderService(_orderRepository,_catalogRepository,_shippingRepository,_shippingService); _personalizationRepository = new TestPersonalizationRepository(); _personalizationService = new PersonalizationService(_personalizationRepository,_orderRepository, _orderService,_catalogRepository); _catalogService = new CatalogService(_catalogRepository,_orderService); _paymentService = new FakePaymentService(); _incentiveRepository = new TestIncentiveRepository(); _incentiveService = new IncentiveService(_incentiveRepository); //this service throws the sent mailers into a collection //and does not use SMTP _mailerService = new TestMailerService(); _inventoryRepository = new TestInventoryRepository(); _inventoryService = new InventoryService(_inventoryRepository,_catalogService); _mailerRepository = new TestMailerRepository(); _pipeline=new DefaultPipeline( _addressValidation,_paymentService, _orderService,_mailerService, _inventoryService ); }
public AdminService(ICacheService cacheService , ICatalogService catalogService) { this.CacheService = cacheService; this.CatalogService = catalogService; this.EmailerService = DependencyResolver.Current.GetService<IEmailerService>(); }
public IEnumerable<Product> GetAvailableProducts(ICatalogService catalogService) { var request = new RetrieveAvailableProductsRequest(); var response = catalogService.RetrieveAvailableProducts(request); return response.Products; }
public ProductsPresenter(ICatalogService catalog, IProductsView view) { _catalog = catalog; _view = view; view.SetCategories(catalog.GetCategories()); view.CategorySelected += (sender, args) => SelectCategory(args.Category); }
// Converts View Material model to the EF Material Model public static MaterialEFModel ToDomainModel(this MaterialMVCModel materialModel, ICatalogService<MaterialEFModel> materialService) { if (materialModel == null) { return null; } var materialDomain = materialService.GetById(materialModel.Id); if (materialDomain == null) { throw new ArgumentException(String.Format("Material with ID={0} not found.", materialModel.Id), "materialModel.Id"); } /*Material materialDomain; if (materialModel.IsFolder) materialDomain = materialService.CreateFolder(); else materialDomain = materialService.CreateItem(); materialDomain.Id = materialModel.Id; materialDomain.Comment = materialModel.Comment; materialDomain.Name = materialModel.Name; materialDomain.GUID = materialModel.GUID; materialDomain.Code = materialModel.Code;*/ return materialDomain; }
public CatalogModuleCatalogsController(ICatalogService catalogService, ICatalogSearchService itemSearchService, ISettingsManager settingManager, ISecurityService securityService, IPermissionScopeService permissionScopeService) : base(securityService, permissionScopeService) { _catalogService = catalogService; _searchService = itemSearchService; _settingManager = settingManager; }
public CatalogModulePropertiesController(IPropertyService propertyService, ICategoryService categoryService, ICatalogService catalogService) { _propertyService = propertyService; _categoryService = categoryService; _catalogService = catalogService; }
/// <summary> /// Overloaded constructor for testing /// </summary> public OrderController (IOrderService cartService, ICatalogService catalogService,IAddressValidationService addressValidator) { _orderService = cartService; _catalogService = catalogService; _addressValidator = addressValidator; }
public CheckoutController(IShoppingCartService shoppingCartService, ICatalogService catalogService, IFinanceService financeService, IErpService erpService, ApplicationUserManager userManager) { this.shoppingCartService = shoppingCartService; this.catalogService = catalogService; this.financeService = financeService; this.erpService = erpService; this.userManager = userManager; }
public CatalogModuleProductsController(IItemService itemsService, IPropertyService propertyService, IBlobUrlResolver blobUrlResolver, ICatalogService catalogService, ISkuGenerator skuGenerator) { _itemsService = itemsService; _propertyService = propertyService; _blobUrlResolver = blobUrlResolver; _catalogService = catalogService; _skuGenerator = skuGenerator; }
public ProductController(ICatalogService service, IImageStorageService imageService, ITopListService topService, IMapper<Product, ProductModel> listMapper, IMapper<Product, EditProductModel> editMapper) { this.service = service; this.imageService = imageService; this.topService = topService; this.listMapper = listMapper; this.editMapper = editMapper; }
public CatalogModuleExportImportController(ICatalogService catalogService, INotifier notifier, ISettingsManager settingsManager, IBlobStorageProvider blobStorageProvider) { _catalogService = catalogService; _notifier = notifier; _settingsManager = settingsManager; _blobStorageProvider = blobStorageProvider; }
public CatalogModuleCategoriesController(ICatalogSearchService searchService, ICategoryService categoryService, ICatalogService catalogService, IBlobUrlResolver blobUrlResolver, ISecurityService securityService, IPermissionScopeService permissionScopeService) :base(securityService, permissionScopeService) { _searchService = searchService; _categoryService = categoryService; _catalogService = catalogService; _blobUrlResolver = blobUrlResolver; }
public CatalogModuleCategoriesController(ICatalogSearchService searchService, ICategoryService categoryService, IPropertyService propertyService, ICatalogService catalogService) { _searchService = searchService; _categoryService = categoryService; _propertyService = propertyService; _catalogService = catalogService; }
public CatalogExportImport(ICatalogSearchService catalogSearchService, ICatalogService catalogService, ICategoryService categoryService, IItemService itemService, IPropertyService propertyService) { _catalogSearchService = catalogSearchService; _catalogService = catalogService; _categoryService = categoryService; _itemService = itemService; _propertyService = propertyService; }
public CatalogModulePropertiesController(IPropertyService propertyService, ICategoryService categoryService, ICatalogService catalogService, ISecurityService securityService, IPermissionScopeService permissionScopeService) :base(securityService, permissionScopeService) { _propertyService = propertyService; _categoryService = categoryService; _catalogService = catalogService; }
public CatalogController( ICacheService cacheService, ICatalogService catalogService, IDocumentService documentService ) { this.CacheService = cacheService; this.CatalogService = catalogService; this.DocumentService = documentService; }
public CatalogModuleExportImportController(ICatalogService catalogService, INotifier notifier, ISettingsManager settingsManager, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, CsvCatalogExporter csvExporter, CsvCatalogImporter csvImporter) { _catalogService = catalogService; _notifier = notifier; _settingsManager = settingsManager; _blobStorageProvider = blobStorageProvider; _csvExporter = csvExporter; _csvImporter = csvImporter; _blobUrlResolver = blobUrlResolver; }
public void Startup() { _cartRepository = new TestShoppingCartRepository(); _catalogRepository = new TestCatalogRepository(); _userRepository = new TestUserRepository(); cartService = new ShoppingCartService(_cartRepository); catalogService = new CatalogService(_catalogRepository); userService = new UserService(_userRepository); }
public CatalogModuleCategoriesController(ICatalogSearchService searchService, ICategoryService categoryService, IPropertyService propertyService, ICatalogService catalogService, IBlobUrlResolver blobUrlResolver) { _searchService = searchService; _categoryService = categoryService; _propertyService = propertyService; _catalogService = catalogService; _blobUrlResolver = blobUrlResolver; }
public CatalogModuleProductsController(IItemService itemsService, IBlobUrlResolver blobUrlResolver, ICatalogService catalogService, ICategoryService categoryService, ISkuGenerator skuGenerator, ISecurityService securityService, IPermissionScopeService permissionScopeService) :base(securityService, permissionScopeService) { _itemsService = itemsService; _categoryService = categoryService; _blobUrlResolver = blobUrlResolver; _catalogService = catalogService; _skuGenerator = skuGenerator; }
public CatalogModuleCatalogsController(ICatalogService catalogService, ICatalogSearchService itemSearchService, ISettingsManager settingManager, IPropertyService propertyService, IPermissionService permissionService) { _catalogService = catalogService; _searchService = itemSearchService; _propertyService = propertyService; _settingManager = settingManager; _permissionService = permissionService; }
public CatalogExportImport(ICatalogSearchService catalogSearchService, ICatalogService catalogService, ICategoryService categoryService, IItemService itemService, IPropertyService propertyService, IBlobStorageProvider blobStorageProvider) { _blobStorageProvider = blobStorageProvider; _catalogSearchService = catalogSearchService; _catalogService = catalogService; _categoryService = categoryService; _itemService = itemService; _propertyService = propertyService; }
public CatalogSearchServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService) { _catalogRepositoryFactory = catalogRepositoryFactory; _itemService = itemService; _catalogService = catalogService; _categoryService = categoryService; _productSortingAliases["sku"] = ReflectionUtility.GetPropertyName <CatalogProduct>(x => x.Code); _categorySortingAliases["sku"] = ReflectionUtility.GetPropertyName <Category>(x => x.Code); }
public CatalogViewModel(ICatalogService productsService) { _productsService = productsService; }
public CatalogController(ICatalogService catalogContex, IMemoryCache cache) { _cache = cache; _catalogService = catalogContex; }
public CategoryServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, ICacheManager <object> cacheManager, AbstractValidator <IHasProperties> hasPropertyValidator, IEventPublisher eventPublisher) { _repositoryFactory = catalogRepositoryFactory; _cacheManager = cacheManager; _hasPropertyValidator = hasPropertyValidator; _commerceService = commerceService; _outlineService = outlineService; _catalogService = catalogService; _eventPublisher = eventPublisher; }
public CategoryMenu(ICatalogService catalog) { _catalog = catalog; }
public SlugRouteService(IStorefrontMemoryCache memoryCache, ICommerce coreApi, ICatalogService catalogService, ICatalogModuleProducts catalogProductsApi) { _memoryCache = memoryCache; _coreApi = coreApi; _catalogService = catalogService; }
public CatalogModulePropertiesController(IPropertyService propertyService, ICategoryService categoryService, ICatalogService catalogService, ISecurityService securityService, IPermissionScopeService permissionScopeService) : base(securityService, permissionScopeService) { _propertyService = propertyService; _categoryService = categoryService; _catalogService = catalogService; }
public ValuesController(ICatalogService sv) { _service = sv; }
public BasketController(ICatalogService catalogService, IBasketService basketService) { _catalog = catalogService; _basket = basketService; }
public CartController(ICatalogService catalogService, ICartService cartService, IIdentityService <ApplicationUser> identityService) { _catalogService = catalogService; _cartService = cartService; _identityService = identityService; }
public ProductController(IWorkContextAccessor workContextAccessor, IStorefrontUrlBuilder urlBuilder, ICatalogService catalogSearchService) : base(workContextAccessor, urlBuilder) { _catalogSearchService = catalogSearchService; }
public PropertyService(Func <ICatalogRepository> repositoryFactory, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache, ICatalogService catalogService) { _repositoryFactory = repositoryFactory; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; _catalogService = catalogService; }
public CatalogModuleListEntryController(ICatalogSearchService searchService, ICategoryService categoryService, IItemService itemService, IBlobUrlResolver blobUrlResolver, ISecurityService securityService, IPermissionScopeService permissionScopeService, ICatalogService catalogService) : base(securityService, permissionScopeService) { _searchService = searchService; _categoryService = categoryService; _itemService = itemService; _blobUrlResolver = blobUrlResolver; _catalogService = catalogService; }
public IndexModel(ICatalogService catalogService) { _service = catalogService; }
public CatalogController() { _catalogService = new CatalogService(); _unitOfWork = new UnitOfWork(); _unitOfWork.CarBrands.Get(Guid.NewGuid()); }
public GracePeriodConfirmedIntegrationEventHandler(OrderingContext orderingContext, ICatalogService catalogService, IEventBus eventBus) { _orderingContext = orderingContext; _catalogService = catalogService; _eventBus = eventBus; }
public UpdateCartItemQuantity(ICartRepository repository, IMapper mapper, ICatalogService catalogService) { _repository = repository; _mapper = mapper; _catalogService = catalogService; }
public CatalogController(ICatalogService catalog) { this.catalog = catalog; }
public CatalogController(ICatalogService catalogService) => _catalogService = catalogService;
public WooliesCodingChallengeController(IOptions <WooliesXConfig> wooliesXConfig, IResourceService resourceService, ICatalogService catalogService) { _wooliesXConfig = wooliesXConfig; _resourceService = resourceService; _catalogService = catalogService; }
public GenreMenuComponent(ICatalogService catalogService) { _catalogService = catalogService; }
public WishListController(IIdentityService <ApplicationUser> identityService, IWishListService cartService, ICatalogService catalogService) { _identityService = identityService; _cartService = cartService; _catalogService = catalogService; }
public PropertyServiceImpl(Func <ICatalogRepository> repositoryFactory, ICacheManager <object> cacheManager, ICatalogService catalogService) { _repositoryFactory = repositoryFactory; _cacheManager = cacheManager; _catalogService = catalogService; }
public NotificationViewController(ICatalogService catalogService) { _catalogService = catalogService; _viewModelMapperHelper = new ViewModelMapperHelper(ViewBag, _catalogService); }
public ProductModel(ICatalogService catalogService) { _catalogService = catalogService ?? throw new ArgumentNullException(nameof(catalogService)); }
public CategoryFilterViewComponent(ICatalogService catalogService) { _catalogService = catalogService; }
public ViewModelMapperHelper(dynamic viewBag, IInstitutionService institutionService, ICatalogService catalogService) { // TODO: Complete member initialization _viewBag = viewBag; _institutionService = institutionService; _catalogService = catalogService; }
public CartController(IBasketService basketSvc, ICatalogService catalogSvc, IIdentityParser <ApplicationUser> appUserParser) { _basketSvc = basketSvc; _catalogSvc = catalogSvc; _appUserParser = appUserParser; }
public CatalogController(ICatalogService catalogSvc) =>
public CatalogController(ICatalogService service) { _service = service; }