Esempio n. 1
0
 public CartItemManager(ICartBuilder cartBuilder, ISession session, IGetUserGuid getUserGuid, IGetExistingCartItem getExistingCartItem)
 {
     _cartBuilder         = cartBuilder;
     _session             = session;
     _getUserGuid         = getUserGuid;
     _getExistingCartItem = getExistingCartItem;
 }
Esempio n. 2
0
 public SagePayService(ITransactionManager transactionManager, ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid, ICartGuidResetter cartGuidResetter)
 {
     _transactionManager = transactionManager;
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
     _cartGuidResetter = cartGuidResetter;
 }
Esempio n. 3
0
 public SagePayService(ITransactionManager transactionManager, ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid, ICartGuidResetter cartGuidResetter)
 {
     _transactionManager = transactionManager;
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
     _cartGuidResetter   = cartGuidResetter;
 }
Esempio n. 4
0
 public PaypointPaymentService(PaypointSettings paypointSettings, IPaypointRequestService paypointRequestService,
                               ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _paypointSettings       = paypointSettings;
     _paypointRequestService = paypointRequestService;
     _cartSessionManager     = cartSessionManager;
     _getUserGuid            = getUserGuid;
 }
Esempio n. 5
0
 public PaypointPaymentService(PaypointSettings paypointSettings, IPaypointRequestService paypointRequestService,
                               ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _paypointSettings = paypointSettings;
     _paypointRequestService = paypointRequestService;
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
Esempio n. 6
0
 public CartItemManagerTests()
 {
     _cartModel = new CartModel();
     Session.Transact(session => session.SaveOrUpdate(_productVariant));
     _getUserGuid = A.Fake<IGetUserGuid>();
     _cartBuilder = A.Fake<ICartBuilder>();
     A.CallTo(() => _cartBuilder.BuildCart()).Returns(_cartModel);
     _cartItemManager = new CartItemManager(_cartBuilder, Session, _getUserGuid);
 }
Esempio n. 7
0
 public CartItemManagerTests()
 {
     _cartModel = new CartModel();
     Session.Transact(session => session.SaveOrUpdate(_productVariant));
     _getUserGuid = A.Fake <IGetUserGuid>();
     _cartBuilder = A.Fake <ICartBuilder>();
     A.CallTo(() => _cartBuilder.BuildCart()).Returns(_cartModel);
     _cartItemManager = new CartItemManager(_cartBuilder, Session, _getUserGuid);
 }
Esempio n. 8
0
 public GetCartImplTests()
 {
     var currentUser = new User();
     Session.Transact(session => session.Save(currentUser));
     CurrentRequestData.CurrentUser = currentUser;
     _getUserGuid = A.Fake<IGetUserGuid>();
     _cartBuilder = new CartBuilder(A.Fake<IAssignBasicCartInfo>(), A.Fake<IAssignShippingInfo>(),
         A.Fake<IAssignCartDiscountInfo>(), A.Fake<IAssignGiftCardInfo>(),
         A.Fake<IAssignRewardPointInfo>(), A.Fake<IAssignPaymentInfo>(), _getUserGuid);
 }
        public GetCartImplTests()
        {
            var currentUser = new User();

            Session.Transact(session => session.Save(currentUser));
            CurrentRequestData.CurrentUser = currentUser;
            _getUserGuid = A.Fake <IGetUserGuid>();
            _cartBuilder = new CartBuilder(A.Fake <IAssignBasicCartInfo>(), A.Fake <IAssignShippingInfo>(),
                                           A.Fake <IAssignCartDiscountInfo>(), A.Fake <IAssignGiftCardInfo>(),
                                           A.Fake <IAssignRewardPointInfo>(), A.Fake <IAssignPaymentInfo>(), _getUserGuid);
        }
Esempio n. 10
0
 public CartBuilder(IAssignBasicCartInfo assignBasicCartInfo,
     IAssignShippingInfo assignShippingInfo,
     IAssignCartDiscountInfo assignCartDiscountInfo,
     IAssignGiftCardInfo assignGiftCardInfo,
     IAssignRewardPointInfo assignRewardPointInfo,
     IAssignPaymentInfo assignPaymentInfo,
     IGetUserGuid getUserGuid)
 {
     _assignBasicCartInfo = assignBasicCartInfo;
     _assignShippingInfo = assignShippingInfo;
     _assignCartDiscountInfo = assignCartDiscountInfo;
     _assignGiftCardInfo = assignGiftCardInfo;
     _assignRewardPointInfo = assignRewardPointInfo;
     _assignPaymentInfo = assignPaymentInfo;
     _getUserGuid = getUserGuid;
 }
Esempio n. 11
0
 public CartBuilder(IAssignBasicCartInfo assignBasicCartInfo,
                    IAssignShippingInfo assignShippingInfo,
                    IAssignCartDiscountInfo assignCartDiscountInfo,
                    IAssignGiftCardInfo assignGiftCardInfo,
                    IAssignRewardPointInfo assignRewardPointInfo,
                    IAssignPaymentInfo assignPaymentInfo,
                    IGetUserGuid getUserGuid)
 {
     _assignBasicCartInfo    = assignBasicCartInfo;
     _assignShippingInfo     = assignShippingInfo;
     _assignCartDiscountInfo = assignCartDiscountInfo;
     _assignGiftCardInfo     = assignGiftCardInfo;
     _assignRewardPointInfo  = assignRewardPointInfo;
     _assignPaymentInfo      = assignPaymentInfo;
     _getUserGuid            = getUserGuid;
 }
Esempio n. 12
0
 public TermsAndConditionsUIService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
 }
Esempio n. 13
0
 public CartManager(ICartBuilder cartBuilder, ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartBuilder = cartBuilder;
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
Esempio n. 14
0
 public CartManager(ICartBuilder cartBuilder, ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartBuilder        = cartBuilder;
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
 }
 public CartRewardPointsUIService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
 }
Esempio n. 16
0
 public CartItemManager(ICartBuilder cartBuilder, ISession session, IGetUserGuid getUserGuid)
 {
     _cartBuilder = cartBuilder;
     _session = session;
     _getUserGuid = getUserGuid;
 }
 public TermsAndConditionsUIService(ICartSessionManager cartSessionManager,IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
 public ClearCartSessionKeys(ICartSessionManager cartSessionManager, IEnumerable <ICartSessionKeyList> sessionKeyLists, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _sessionKeyLists    = sessionKeyLists;
     _getUserGuid        = getUserGuid;
 }
Esempio n. 19
0
 public GiftMessageUIService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
 }
Esempio n. 20
0
 public CartDiscountCodeService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
Esempio n. 21
0
 public CartItemManager(ICartBuilder cartBuilder, ISession session, IGetUserGuid getUserGuid)
 {
     _cartBuilder = cartBuilder;
     _session     = session;
     _getUserGuid = getUserGuid;
 }
Esempio n. 22
0
 public WishlistUIService(IGetUserGuid getUserGuid, ISession session, IProductVariantAvailabilityService productVariantAvailabilityService)
 {
     _getUserGuid = getUserGuid;
     _session = session;
     _productVariantAvailabilityService = productVariantAvailabilityService;
 }
 public SetShippingDateService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid, IUniquePageService uniquePageService)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
     _uniquePageService  = uniquePageService;
 }
Esempio n. 24
0
 public Paypoint3DSecureHelper(ICartGuidResetter cartGuidResetter, ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartGuidResetter = cartGuidResetter;
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
 public CartRewardPointsUIService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
 public Paypoint3DSecureHelper(ICartGuidResetter cartGuidResetter, ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartGuidResetter   = cartGuidResetter;
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
 }
Esempio n. 27
0
 public CartDiscountCodeService(ICartSessionManager cartSessionManager, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid        = getUserGuid;
 }
Esempio n. 28
0
 public ClearCartSessionKeys(ICartSessionManager cartSessionManager, IEnumerable<ICartSessionKeyList> sessionKeyLists, IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _sessionKeyLists = sessionKeyLists;
     _getUserGuid = getUserGuid;
 }
Esempio n. 29
0
 public GiftMessageUIService(ICartSessionManager cartSessionManager,IGetUserGuid getUserGuid)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
 }
Esempio n. 30
0
 public SetShippingDateService(ICartSessionManager cartSessionManager,IGetUserGuid getUserGuid,IUniquePageService uniquePageService)
 {
     _cartSessionManager = cartSessionManager;
     _getUserGuid = getUserGuid;
     _uniquePageService = uniquePageService;
 }
Esempio n. 31
0
 public WishlistUIService(IGetUserGuid getUserGuid, ISession session, IProductVariantAvailabilityService productVariantAvailabilityService)
 {
     _getUserGuid = getUserGuid;
     _session     = session;
     _productVariantAvailabilityService = productVariantAvailabilityService;
 }