Ejemplo n.º 1
0
        public SearchProductsByTitleSteps()
        {
            _inMemoryStorage = new InMemoryStorage();
            var queryFactory = new FindProductsByTitleQueryFactory(_inMemoryStorage);

            _controller = new ProductSearchController(queryFactory);
        }
Ejemplo n.º 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>()
     };
 }
Ejemplo n.º 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>()
     };
 }
        public string Execute(string partnerName, string StartByDate)
        {
            ProductSearchController prodSearchController = new ProductSearchController();

            return(prodSearchController.Get(partnerName, StartByDate));
        }