Esempio n. 1
0
 public ShoppingCart(
     IContentManager contentManager,
     IShoppingCartStorage cartStorage,
     IPriceService priceService)
 {
     _contentManager = contentManager;
     _cartStorage    = cartStorage;
     _priceService   = priceService;
 }
Esempio n. 2
0
        public ShoppingCart(int ownerId, string clientId, RmsAuto.Acctg.ClientGroup clientGroup, decimal personalMarkup)
        {
            if( string.IsNullOrEmpty( clientId ) )
                throw new ArgumentException( "Client id cannot be empty", "clientId" );

            _ownerId = ownerId;
            _clientId = clientId;
            _clientGroup = clientGroup;
            _personalMarkup = personalMarkup;
            _storage = new PersistentShoppingCartStorage( _ownerId, _clientId );
        }
Esempio n. 3
0
 public ShoppingCart(
     IContentManager contentManager,
     IShoppingCartStorage cartStorage,
     IPriceService priceService,
     IEnumerable <IProductAttributesDriver> attributesDrivers,
     IEnumerable <ITaxProvider> taxProviders,
     INotifier notifier)
     : base(contentManager,
            cartStorage,
            priceService,
            attributesDrivers,
            taxProviders,
            notifier)
 {
 }
Esempio n. 4
0
 public ShoppingCart(
     IContentManager contentManager,
     IShoppingCartStorage cartStorage,
     IPriceService priceService,
     IEnumerable <IProductAttributesDriver> attributesDrivers,
     IEnumerable <ITaxProvider> taxProviders,
     INotifier notifier)
 {
     _contentManager    = contentManager;
     _cartStorage       = cartStorage;
     _priceService      = priceService;
     _attributesDrivers = attributesDrivers;
     _taxProviders      = taxProviders;
     _notifier          = notifier;
     T = NullLocalizer.Instance;
 }
Esempio n. 5
0
 public void Set(IShoppingCartStorage ss) => shop.CartStorage = ss;
Esempio n. 6
0
 private ShoppingCart(RmsAuto.Acctg.ClientGroup clientGroup, decimal personalMarkup)
 {
     _clientGroup = clientGroup;
     _personalMarkup = personalMarkup;
     _storage = new TemporaryShoppingCartStorage();
 }