public ProductSearchQueryService(IProductOptionManager productOptionManager, IAvailableBrandsService availableBrandsService, ICategoryService categoryService, IProductSearchIndexService productSearchIndexService) { _productOptionManager = productOptionManager; _availableBrandsService = availableBrandsService; _categoryService = categoryService; _productSearchIndexService = productSearchIndexService; }
public ProductController(IProductService productService, ICategoryService categoryService, IProductOptionManager productOptionManager, IFileAdminService fileAdminService, IProductOptionManagementService productOptionManagementService, SiteSettings siteSettings, IUniquePageService uniquePageService) { _productService = productService; _categoryService = categoryService; _productOptionManager = productOptionManager; _fileAdminService = fileAdminService; _productOptionManagementService = productOptionManagementService; _siteSettings = siteSettings; _uniquePageService = uniquePageService; }
public ProductControllerTests() { _documentService = A.Fake<IDocumentService>(); _productService = A.Fake<IProductService>(); _categoryService = A.Fake<ICategoryService>(); _productOptionManager = A.Fake<IProductOptionManager>(); _fileService = A.Fake<IFileAdminService>(); _productOptionManagementService = A.Fake<IProductOptionManagementService>(); _siteSettings = new SiteSettings {DefaultPageSize = 10}; _uniquePageService = A.Fake<IUniquePageService>(); _productSearch = new ProductSearch(); _eTagAdminService = A.Fake<IETagAdminService>(); A.CallTo(() => _uniquePageService.GetUniquePage<ProductSearch>()).Returns(_productSearch); _productController = new ProductController(_productService, _documentService, _categoryService, _productOptionManager, _fileService, _productOptionManagementService, _siteSettings, _uniquePageService, _eTagAdminService); }
public ProductControllerTests() { _productService = A.Fake <IProductService>(); _categoryService = A.Fake <ICategoryService>(); _productOptionManager = A.Fake <IProductOptionManager>(); _fileService = A.Fake <IFileAdminService>(); _productOptionManagementService = A.Fake <IProductOptionManagementService>(); _siteSettings = new SiteSettings { DefaultPageSize = 10 }; _uniquePageService = A.Fake <IUniquePageService>(); _productSearch = new ProductSearch(); A.CallTo(() => _uniquePageService.GetUniquePage <ProductSearch>()).Returns(_productSearch); _productController = new ProductController(_productService, _categoryService, _productOptionManager, _fileService, _productOptionManagementService, _siteSettings, _uniquePageService); }
ProductSpecificationAttributeOptionController GetProductSpecificationAttributeOptionController() { _productOptionManager = A.Fake <IProductOptionManager>(); return(new ProductSpecificationAttributeOptionController(_productOptionManager)); }
ProductSpecificationAttributeController GetProductSpecificationAttributeController() { _productOptionManager = A.Fake<IProductOptionManager>(); return new ProductSpecificationAttributeController(_productOptionManager); }
public ProductSpecificationAttributeController(IProductOptionManager productOptionManager) { _productOptionManager = productOptionManager; }