예제 #1
0
 public ProductSearchQueryService(IProductOptionManager productOptionManager, IAvailableBrandsService availableBrandsService,
     ICategoryService categoryService, IProductSearchIndexService productSearchIndexService)
 {
     _productOptionManager = productOptionManager;
     _availableBrandsService = availableBrandsService;
     _categoryService = categoryService;
     _productSearchIndexService = productSearchIndexService;
 }
 public ProductSearchQueryService(IProductOptionManager productOptionManager, IAvailableBrandsService availableBrandsService,
                                  ICategoryService categoryService, IProductSearchIndexService productSearchIndexService)
 {
     _productOptionManager      = productOptionManager;
     _availableBrandsService    = availableBrandsService;
     _categoryService           = categoryService;
     _productSearchIndexService = productSearchIndexService;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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);
 }
예제 #5
0
        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);
        }
예제 #6
0
 ProductSpecificationAttributeOptionController GetProductSpecificationAttributeOptionController()
 {
     _productOptionManager = A.Fake <IProductOptionManager>();
     return(new ProductSpecificationAttributeOptionController(_productOptionManager));
 }
 ProductSpecificationAttributeController GetProductSpecificationAttributeController()
 {
     _productOptionManager = A.Fake<IProductOptionManager>();
     return new ProductSpecificationAttributeController(_productOptionManager);
 }
예제 #8
0
 public ProductSpecificationAttributeController(IProductOptionManager productOptionManager)
 {
     _productOptionManager = productOptionManager;
 }