public ProductSearchController(IProductSearchIndexService productSearchIndexService, CartModel cart,
                                IHtmlCacheService htmlCacheService)
 {
     _productSearchIndexService = productSearchIndexService;
     _cart             = cart;
     _htmlCacheService = htmlCacheService;
 }
Example #2
0
 public ProductSearchControllerTests()
 {
     _productSearchIndexService = A.Fake <IProductSearchIndexService>();
     _cartModel        = new CartModel();
     _htmlCacheService = A.Fake <IHtmlCacheService>();
     _controller       = new ProductSearchController(_productSearchIndexService, _cartModel,
                                                     _htmlCacheService)
     {
         RequestMock = A.Fake <HttpRequestBase>()
     };
 }
 public ProductSearchControllerTests()
 {
     _productSearchIndexService = A.Fake<IProductSearchIndexService>();
     _cartModel = new CartModel();
     _htmlCacheService = A.Fake<IHtmlCacheService>();
     _controller = new ProductSearchController(_productSearchIndexService, _cartModel,
         _htmlCacheService)
     {
         RequestMock = A.Fake<HttpRequestBase>()
     };
 }
Example #4
0
 public ProductSearchControllerTests()
 {
     _productSearchIndexService = A.Fake <IProductSearchIndexService>();
     _cartModel        = new CartModel();
     _htmlCacheService = A.Fake <IHtmlCacheService>();
     Kernel.Rebind <IGetProductSearchView>().ToConstant(A.Fake <IGetProductSearchView>());
     _controller = new ProductSearchController(_productSearchIndexService, _cartModel,
                                               _htmlCacheService)
     {
         RequestMock = A.Fake <HttpRequestBase>()
     };
 }
Example #5
0
 public WidgetUIService(IGetWidgetCachingInfo getWidgetCachingInfo,IHtmlCacheService htmlCacheService,IWidgetModelService widgetModelService)
 {
     _getWidgetCachingInfo = getWidgetCachingInfo;
     _htmlCacheService = htmlCacheService;
     _widgetModelService = widgetModelService;
 }
Example #6
0
 public WebpageUIService(IHtmlCacheService htmlCacheService, IGetWebpageCachingInfo getWebpageCachingInfo)
 {
     _htmlCacheService      = htmlCacheService;
     _getWebpageCachingInfo = getWebpageCachingInfo;
 }
Example #7
0
 public WidgetUIService(IGetWidgetCachingInfo getWidgetCachingInfo, IHtmlCacheService htmlCacheService, IWidgetModelService widgetModelService)
 {
     _getWidgetCachingInfo = getWidgetCachingInfo;
     _htmlCacheService     = htmlCacheService;
     _widgetModelService   = widgetModelService;
 }