public void Setup()
		{
			IOC.UnitTest();
			_product = new Product {UrlName = "prod", Categories = new API.ICategory[] {new StubCategory()}};
			IOC.CategoryCatalogUrlService.SetupNewMock().Setup(m => m.GetCanonicalUrl(It.IsAny<ICategory>())).Returns("[catname]");
			_productUrlService = IOC.ProductUrlService.Actual().Resolve();
		}
 public void Setup()
 {
     IOC.UnitTest();
     _product = new Product {
         UrlName = "prod", Categories = new API.ICategory[] { new StubCategory() }
     };
     IOC.CategoryCatalogUrlService.SetupNewMock().Setup(m => m.GetCanonicalUrl(It.IsAny <ICategory>())).Returns("[catname]");
     _productUrlService = IOC.ProductUrlService.Actual().Resolve();
 }
		public UrlService(IUrlFormatService urlFormatService, IUrlLocalizationService urlLocalizationService, ICategoryCatalogUrlService categoryCatalogUrlService, IProductUrlService productUrlService, IUwebshopRequestService requestService, ICategoryService categoryService, IProductService productService)
		{
			_urlFormatService = urlFormatService;
			_urlLocalizationService = urlLocalizationService;
			_categoryCatalogUrlService = categoryCatalogUrlService;
			_productUrlService = productUrlService;
			_requestService = requestService;
			_categoryService = categoryService;
			_productService = productService;
		}
Beispiel #4
0
 public UrlService(IUrlFormatService urlFormatService, IUrlLocalizationService urlLocalizationService, ICategoryCatalogUrlService categoryCatalogUrlService, IProductUrlService productUrlService, IUwebshopRequestService requestService, ICategoryService categoryService, IProductService productService)
 {
     _urlFormatService          = urlFormatService;
     _urlLocalizationService    = urlLocalizationService;
     _categoryCatalogUrlService = categoryCatalogUrlService;
     _productUrlService         = productUrlService;
     _requestService            = requestService;
     _categoryService           = categoryService;
     _productService            = productService;
 }
 public BlockUrlService(IArticleUrlService articleUrlService, IProductUrlService productUrlService)
 {
     _articleUrlService = articleUrlService;
     _productUrlService = productUrlService;
 }
Beispiel #6
0
 public ProductPageSiteUrlProvider(IProductUrlService productUrlService)
 {
     _productUrlService = productUrlService;
 }