コード例 #1
0
ファイル: PayPalUrlService.cs プロジェクト: neozhu/Ecommerce
 public PayPalUrlService(Site currentSite, PayPalExpressCheckoutSettings payPalExpressCheckoutSettings, SiteSettings siteSettings, IUniquePageService uniquePageService)
 {
     _currentSite = currentSite;
     _payPalExpressCheckoutSettings = payPalExpressCheckoutSettings;
     _siteSettings = siteSettings;
     _uniquePageService = uniquePageService;
 }
コード例 #2
0
 public ProductServiceTests()
 {
     _documentService = A.Fake<IDocumentService>();
     _siteSettings = new SiteSettings() { DefaultPageSize = 10 };
     _uniquePageService = A.Fake<IUniquePageService>();
     _productService = new ProductService(Session, _documentService, _siteSettings, _uniquePageService);
 }
コード例 #3
0
 public AddToCartUIService(ICartValidationService cartValidationService, ICartItemManager cartItemManager,
     IUniquePageService uniquePageService)
 {
     _cartValidationService = cartValidationService;
     _cartItemManager = cartItemManager;
     _uniquePageService = uniquePageService;
 }
コード例 #4
0
 public CommentingUserAccountController(IUniqueUsernameService uniqueUsernameService, IUniquePageService uniquePageService, ICommentInfoUiService commentInfoUiService, IStringResourceProvider stringResourceProvider)
 {
     _uniqueUsernameService = uniqueUsernameService;
     _uniquePageService = uniquePageService;
     _commentInfoUiService = commentInfoUiService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #5
0
ファイル: ProductService.cs プロジェクト: neozhu/Ecommerce
 public ProductService(ISession session, IDocumentService documentService, SiteSettings ecommerceSettings, IUniquePageService uniquePageService)
 {
     _session = session;
     _documentService = documentService;
     _ecommerceSettings = ecommerceSettings;
     _uniquePageService = uniquePageService;
 }
コード例 #6
0
 public GetUserAccountLinks(IUniquePageService uniquePageService, 
     EcommerceSettings ecommerceSettings, ProductReviewSettings productReviewSettings)
 {
     _uniquePageService = uniquePageService;
     _ecommerceSettings = ecommerceSettings;
     _productReviewSettings = productReviewSettings;
 }
コード例 #7
0
 public ProductOptionManager(ISession session, IProductSearchIndexService productSearchIndexService,
     IUniquePageService uniquePageService)
 {
     _session = session;
     _productSearchIndexService = productSearchIndexService;
     _uniquePageService = uniquePageService;
 }
コード例 #8
0
 public ProductAddedToCartUIService(IUniquePageService uniquePageService, CartModel cart,
     IRelatedProductsService relatedProductsService, IPeopleWhoBoughtThisService peopleWhoBoughtThisService)
 {
     _uniquePageService = uniquePageService;
     _cart = cart;
     _relatedProductsService = relatedProductsService;
     _peopleWhoBoughtThisService = peopleWhoBoughtThisService;
 }
コード例 #9
0
 public SetShippingMethodService(CartModel cart, IShippingMethodUIService shippingMethodUIService,
     ICartManager cartManager, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _shippingMethodUIService = shippingMethodUIService;
     _cartManager = cartManager;
     _uniquePageService = uniquePageService;
 }
コード例 #10
0
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
     IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService = uniquePageService;
     _cartModel = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService = orderPlacementService;
 }
コード例 #11
0
ファイル: ImportProducts.cs プロジェクト: neozhu/Ecommerce
 public ImportProducts(IUniquePageService uniquePageService, ISession session,
     IWebpageUrlService webpageUrlService, IImportProductVariants importProductVariants)
 {
     _uniquePageService = uniquePageService;
     _session = session;
     _webpageUrlService = webpageUrlService;
     _importProductVariants = importProductVariants;
 }
コード例 #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);
 }
コード例 #13
0
 public SetShippingAddressService(IUniquePageService uniquePageService, ICartManager cartManager, CartModel cart,
     IGetCountryOptions getCountryOptions,
     IGetExistingAddressOptions getExistingAddressOptions)
 {
     _uniquePageService = uniquePageService;
     _cartManager = cartManager;
     _cart = cart;
     _getCountryOptions = getCountryOptions;
     _getExistingAddressOptions = getExistingAddressOptions;
 }
コード例 #14
0
 public ImportProductsService Build()
 {
     _uniquePageService = A.Fake<IUniquePageService>();
     var importProductsService = new ImportProductsService(_documentService,
         _importProductSpecificationsService,
         _importProductVariantsService,
         _importProductImagesService, _importUrlHistoryService,
         _session, _uniquePageService, _createBatch, _getNewBrandPage);
     return importProductsService;
 }
コード例 #15
0
ファイル: LoginControllerTests.cs プロジェクト: neozhu/MrCMS
        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"));
        }
コード例 #16
0
 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);
 }
コード例 #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;
 }
コード例 #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);
 }
コード例 #19
0
 public ProductContainerControllerTests()
 {
     _uniquePageService = A.Fake<IUniquePageService>();
     _controller = new ProductContainerController(_uniquePageService) {RequestMock = A.Fake<HttpRequestBase>()};
 }
コード例 #20
0
 public ContactUsController(IUniquePageService uniquePageService)
 {
     _uniquePageService = uniquePageService;
 }
コード例 #21
0
 public SetShippingDetailsUIService(CartModel cart, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
 }
コード例 #22
0
ファイル: BrandAdminService.cs プロジェクト: neozhu/Ecommerce
 public BrandAdminService(IUniquePageService uniquePageService, ISession session, IGetNewBrandPage getNewBrandPage)
 {
     _uniquePageService = uniquePageService;
     _session = session;
     _getNewBrandPage = getNewBrandPage;
 }
コード例 #23
0
ファイル: BrandAdminService.cs プロジェクト: neozhu/Ecommerce
 public GetNewBrandPage(IUniquePageService uniquePageService, IWebpageUrlService webpageUrlService)
 {
     _uniquePageService = uniquePageService;
     _webpageUrlService = webpageUrlService;
 }
コード例 #24
0
 public SetShippingDetailsUIService(CartModel cart, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
 }
コード例 #25
0
ファイル: CategoryService.cs プロジェクト: neozhu/Ecommerce
 public CategoryService(ISession session, IProductSearchIndexService productSearchIndexService, IUniquePageService uniquePageService)
 {
     _session = session;
     _productSearchIndexService = productSearchIndexService;
     _uniquePageService = uniquePageService;
 }
コード例 #26
0
 public UserTokenProvider(IUniquePageService uniquePageService)
 {
     _uniquePageService = uniquePageService;
     _tokens            = GetTokens();
 }
コード例 #27
0
ファイル: GetUserLinks.cs プロジェクト: yxb1987/MrCMS
 public GetUserLinks(IUniquePageService uniquePageService, IStringResourceProvider stringResourceProvider)
 {
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
 }
コード例 #28
0
 public GetNewBrandPage(IUniquePageService uniquePageService, IWebpageUrlService webpageUrlService)
 {
     _uniquePageService = uniquePageService;
     _webpageUrlService = webpageUrlService;
 }
コード例 #29
0
 public PlanPageController(IPlanService planService, IUniquePageService uniquepageService, IPageMessageSvc pageMessageSvc)
 {
     _planService       = planService;
     _uniquePageService = uniquepageService;
     _pageMessageSvc    = pageMessageSvc;
 }
コード例 #30
0
 public CategoryAdminService(ISession session, IUniquePageService uniquePageService)
 {
     _session = session;
     _uniquePageService = uniquePageService;
 }
コード例 #31
0
 public CashOnDeliveryUIService(CartModel cart, IUniquePageService uniquePageService, IOrderPlacementService orderPlacementService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
     _orderPlacementService = orderPlacementService;
 }
コード例 #32
0
ファイル: ImportCategories.cs プロジェクト: neozhu/Ecommerce
 public ImportCategories(IUniquePageService uniquePageService, ISession session, IWebpageUrlService webpageUrlService)
 {
     _uniquePageService = uniquePageService;
     _session = session;
     _webpageUrlService = webpageUrlService;
 }
コード例 #33
0
 public SetShippingDateService(ICartSessionManager cartSessionManager,IGetUserGuid getUserGuid,IUniquePageService uniquePageService)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
     _uniquePageService = uniquePageService;
 }
コード例 #34
0
 public GetCategoriesOnlyNavModel(ISession session, IUniquePageService uniquePageService)
 {
     _session           = session;
     _uniquePageService = uniquePageService;
 }