public ShoppingCart( IContentManager contentManager, IShoppingCartStorage cartStorage, IPriceService priceService) { _contentManager = contentManager; _cartStorage = cartStorage; _priceService = priceService; }
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 ); }
public ShoppingCart( IContentManager contentManager, IShoppingCartStorage cartStorage, IPriceService priceService, IEnumerable <IProductAttributesDriver> attributesDrivers, IEnumerable <ITaxProvider> taxProviders, INotifier notifier) : base(contentManager, cartStorage, priceService, attributesDrivers, taxProviders, notifier) { }
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; }
public void Set(IShoppingCartStorage ss) => shop.CartStorage = ss;
private ShoppingCart(RmsAuto.Acctg.ClientGroup clientGroup, decimal personalMarkup) { _clientGroup = clientGroup; _personalMarkup = personalMarkup; _storage = new TemporaryShoppingCartStorage(); }