Ejemplo n.º 1
0
 public PayPalUrlService(Site currentSite, PayPalExpressCheckoutSettings payPalExpressCheckoutSettings, SiteSettings siteSettings, IUniquePageService uniquePageService)
 {
     _currentSite = currentSite;
     _payPalExpressCheckoutSettings = payPalExpressCheckoutSettings;
     _siteSettings = siteSettings;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 2
0
 public ProductServiceTests()
 {
     _documentService = A.Fake<IDocumentService>();
     _siteSettings = new SiteSettings() { DefaultPageSize = 10 };
     _uniquePageService = A.Fake<IUniquePageService>();
     _productService = new ProductService(Session, _documentService, _siteSettings, _uniquePageService);
 }
Ejemplo n.º 3
0
 public AddToCartUIService(ICartValidationService cartValidationService, ICartItemManager cartItemManager,
     IUniquePageService uniquePageService)
 {
     _cartValidationService = cartValidationService;
     _cartItemManager = cartItemManager;
     _uniquePageService = uniquePageService;
 }
 public CommentingUserAccountController(IUniqueUsernameService uniqueUsernameService, IUniquePageService uniquePageService, ICommentInfoUiService commentInfoUiService, IStringResourceProvider stringResourceProvider)
 {
     _uniqueUsernameService = uniqueUsernameService;
     _uniquePageService = uniquePageService;
     _commentInfoUiService = commentInfoUiService;
     _stringResourceProvider = stringResourceProvider;
 }
Ejemplo n.º 5
0
 public ProductService(ISession session, IDocumentService documentService, SiteSettings ecommerceSettings, IUniquePageService uniquePageService)
 {
     _session = session;
     _documentService = documentService;
     _ecommerceSettings = ecommerceSettings;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 6
0
 public GetUserAccountLinks(IUniquePageService uniquePageService, 
     EcommerceSettings ecommerceSettings, ProductReviewSettings productReviewSettings)
 {
     _uniquePageService = uniquePageService;
     _ecommerceSettings = ecommerceSettings;
     _productReviewSettings = productReviewSettings;
 }
Ejemplo n.º 7
0
 public ProductOptionManager(ISession session, IProductSearchIndexService productSearchIndexService,
     IUniquePageService uniquePageService)
 {
     _session = session;
     _productSearchIndexService = productSearchIndexService;
     _uniquePageService = uniquePageService;
 }
 public ProductAddedToCartUIService(IUniquePageService uniquePageService, CartModel cart,
     IRelatedProductsService relatedProductsService, IPeopleWhoBoughtThisService peopleWhoBoughtThisService)
 {
     _uniquePageService = uniquePageService;
     _cart = cart;
     _relatedProductsService = relatedProductsService;
     _peopleWhoBoughtThisService = peopleWhoBoughtThisService;
 }
Ejemplo n.º 9
0
 public SetShippingMethodService(CartModel cart, IShippingMethodUIService shippingMethodUIService,
     ICartManager cartManager, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _shippingMethodUIService = shippingMethodUIService;
     _cartManager = cartManager;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 10
0
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
     IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService = uniquePageService;
     _cartModel = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService = orderPlacementService;
 }
Ejemplo n.º 11
0
 public ImportProducts(IUniquePageService uniquePageService, ISession session,
     IWebpageUrlService webpageUrlService, IImportProductVariants importProductVariants)
 {
     _uniquePageService = uniquePageService;
     _session = session;
     _webpageUrlService = webpageUrlService;
     _importProductVariants = importProductVariants;
 }
Ejemplo n.º 12
0
 public PayPalUrlServiceTests()
 {
     _currentSite = new Site {BaseUrl = "www.example.com"};
     _payPalExpressCheckoutSettings = new PayPalExpressCheckoutSettings();
     _siteSettings = new SiteSettings();
     _uniquePageService = A.Fake<IUniquePageService>();
     _payPalUrlService = new PayPalUrlService(_currentSite, _payPalExpressCheckoutSettings, _siteSettings,
         _uniquePageService);
 }
Ejemplo n.º 13
0
 public SetShippingAddressService(IUniquePageService uniquePageService, ICartManager cartManager, CartModel cart,
     IGetCountryOptions getCountryOptions,
     IGetExistingAddressOptions getExistingAddressOptions)
 {
     _uniquePageService = uniquePageService;
     _cartManager = cartManager;
     _cart = cart;
     _getCountryOptions = getCountryOptions;
     _getExistingAddressOptions = getExistingAddressOptions;
 }
 public ImportProductsService Build()
 {
     _uniquePageService = A.Fake<IUniquePageService>();
     var importProductsService = new ImportProductsService(_documentService,
         _importProductSpecificationsService,
         _importProductVariantsService,
         _importProductImagesService, _importUrlHistoryService,
         _session, _uniquePageService, _createBatch, _getNewBrandPage);
     return importProductsService;
 }
Ejemplo n.º 15
0
        public LoginControllerTests()
        {
            _userService = A.Fake<IUserService>();
            _resetPasswordService = A.Fake<IResetPasswordService>();
            _authorisationService = A.Fake<IAuthorisationService>();
            _loginService = A.Fake<ILoginService>();
            _uniquePageService = A.Fake<IUniquePageService>();
            _loginController = new LoginController(_userService, _resetPasswordService, _authorisationService, _uniquePageService, _loginService, A.Fake<IStringResourceProvider>());

            // initial setup as this is reused
            A.CallTo(() => _uniquePageService.RedirectTo<LoginPage>(null)).Returns(new RedirectResult("~/login-page"));
            A.CallTo(() => _uniquePageService.RedirectTo<ForgottenPasswordPage>(null))
             .Returns(new RedirectResult("~/forgotten-password"));
        }
 public OldImportProductsServiceTests()
 {
     _documentService = A.Fake<IDocumentService>();
     _importSpecificationsService = A.Fake<IImportProductSpecificationsService>();
     _importProductVariantsService = A.Fake<IImportProductVariantsService>();
     _importProductImagesService = A.Fake<IImportProductImagesService>();
     _importProductUrlHistoryService = A.Fake<IImportProductUrlHistoryService>();
     _uniquePageService = A.Fake<IUniquePageService>();
     _createBatch = A.Fake<ICreateBatch>();
     _importProductsService = new ImportProductsService(_documentService,
         _importSpecificationsService,
         _importProductVariantsService,
         _importProductImagesService,
         _importProductUrlHistoryService, Session, _uniquePageService, _createBatch, _getNewBrandPage);
 }
Ejemplo n.º 17
0
 public ImportProductsService(IDocumentService documentService,
     IImportProductSpecificationsService importSpecificationsService,
     IImportProductVariantsService importProductVariantsService,
     IImportProductImagesService importProductImagesService,
     IImportProductUrlHistoryService importUrlHistoryService, ISession session,
     IUniquePageService uniquePageService, ICreateBatch createBatch, IGetNewBrandPage getNewBrandPage)
 {
     _documentService = documentService;
     _importSpecificationsService = importSpecificationsService;
     _importProductVariantsService = importProductVariantsService;
     _importProductImagesService = importProductImagesService;
     _importUrlHistoryService = importUrlHistoryService;
     _session = session;
     _uniquePageService = uniquePageService;
     _createBatch = createBatch;
     _getNewBrandPage = getNewBrandPage;
 }
Ejemplo n.º 18
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);
 }
 public ProductContainerControllerTests()
 {
     _uniquePageService = A.Fake<IUniquePageService>();
     _controller = new ProductContainerController(_uniquePageService) {RequestMock = A.Fake<HttpRequestBase>()};
 }
Ejemplo n.º 20
0
 public ContactUsController(IUniquePageService uniquePageService)
 {
     _uniquePageService = uniquePageService;
 }
 public SetShippingDetailsUIService(CartModel cart, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 22
0
 public BrandAdminService(IUniquePageService uniquePageService, ISession session, IGetNewBrandPage getNewBrandPage)
 {
     _uniquePageService = uniquePageService;
     _session = session;
     _getNewBrandPage = getNewBrandPage;
 }
Ejemplo n.º 23
0
 public GetNewBrandPage(IUniquePageService uniquePageService, IWebpageUrlService webpageUrlService)
 {
     _uniquePageService = uniquePageService;
     _webpageUrlService = webpageUrlService;
 }
Ejemplo n.º 24
0
 public SetShippingDetailsUIService(CartModel cart, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 25
0
 public CategoryService(ISession session, IProductSearchIndexService productSearchIndexService, IUniquePageService uniquePageService)
 {
     _session = session;
     _productSearchIndexService = productSearchIndexService;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 26
0
 public UserTokenProvider(IUniquePageService uniquePageService)
 {
     _uniquePageService = uniquePageService;
     _tokens            = GetTokens();
 }
Ejemplo n.º 27
0
 public GetUserLinks(IUniquePageService uniquePageService, IStringResourceProvider stringResourceProvider)
 {
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
 }
Ejemplo n.º 28
0
 public GetNewBrandPage(IUniquePageService uniquePageService, IWebpageUrlService webpageUrlService)
 {
     _uniquePageService = uniquePageService;
     _webpageUrlService = webpageUrlService;
 }
Ejemplo n.º 29
0
 public PlanPageController(IPlanService planService, IUniquePageService uniquepageService, IPageMessageSvc pageMessageSvc)
 {
     _planService       = planService;
     _uniquePageService = uniquepageService;
     _pageMessageSvc    = pageMessageSvc;
 }
Ejemplo n.º 30
0
 public CategoryAdminService(ISession session, IUniquePageService uniquePageService)
 {
     _session = session;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 31
0
 public CashOnDeliveryUIService(CartModel cart, IUniquePageService uniquePageService, IOrderPlacementService orderPlacementService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
     _orderPlacementService = orderPlacementService;
 }
Ejemplo n.º 32
0
 public ImportCategories(IUniquePageService uniquePageService, ISession session, IWebpageUrlService webpageUrlService)
 {
     _uniquePageService = uniquePageService;
     _session = session;
     _webpageUrlService = webpageUrlService;
 }
Ejemplo n.º 33
0
 public SetShippingDateService(ICartSessionManager cartSessionManager,IGetUserGuid getUserGuid,IUniquePageService uniquePageService)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
     _uniquePageService = uniquePageService;
 }
Ejemplo n.º 34
0
 public GetCategoriesOnlyNavModel(ISession session, IUniquePageService uniquePageService)
 {
     _session           = session;
     _uniquePageService = uniquePageService;
 }