/// <summary> /// Create new instance tied to current cart and reseller. /// </summary> public TermsOfServiceProvider(ICartProvider cartProvider, IProductProvider productProvider, IResourceProvider resourceProvider, IResellerProvider resellerProvider) { if (cartProvider == null) { throw new ArgumentNullException("cartProvider"); } if (productProvider == null) { throw new ArgumentNullException("productProvider"); } if (resourceProvider == null) { throw new ArgumentNullException("resourceProvider"); } if (resellerProvider == null) { throw new ArgumentNullException("resellerProvider"); } this.cartProvider = cartProvider; this.productProvider = productProvider; this.resourceProvider = resourceProvider; this.resellerProvider = resellerProvider; }
public CartService(ICartProvider cartProvider, IProductRepository productRepository, IUserRepository userRepository) { _cartProvider = cartProvider; _productRepository = productRepository; _userRepository = userRepository; }
public CartController(ICharacterRepository rep, ICartProvider cartProvider, IWeekProvider weekProvider, IVoteRepository voteRepository, IUserProvider userProvider) { repository = rep; this.cartProvider = cartProvider; this.weekProvider = weekProvider; this.voteRepository = voteRepository; this.userProvider = userProvider; }
public CartController(ICookieConsumer storage, ICartProvider<UserOrderModel> cartProvider, IPurchaseService purchaseService, IUserAppService user, ILogWriterSql log) : base(storage) { _user = user; _log = log; _cartProvider = cartProvider; _purchaseService = purchaseService; }
public LoadCartOnPageLoadEventHandler(ICartProvider provider, IRestClient restClient, ILogger logger, IOptions <ApiSettings> settings) { this.provider = provider; this.restClient = restClient; this.logger = logger; this.settings = settings; }
public MainController(ICartProvider cartProvider, IUserProvider userProvider, IRepository <Character> charactersRepository, IRepository <Vote> votesRepository, IRepository <VoteItem> voteItemsRepository, IRepository <ApplicationUser> usersRepository, IWeekProvider weekProvider) { this.charactersRepository = charactersRepository; this.votesRepository = votesRepository; this.voteItemsRepository = voteItemsRepository; this.usersRepository = usersRepository; this.weekProvider = weekProvider; this.cartProvider = cartProvider; this.userProvider = userProvider; }
public BooksListViewComponent(IBooksListProvider provider, ISavedItemsProvider savedItemsProvider, ICategoryMenuProvider categoryMenuProvider, ICurrentCategoryProvider currentCategoryProvider, ICartProvider cartProvider) { this.provider = provider; this.savedItemsProvider = savedItemsProvider; this.categoryMenuProvider = categoryMenuProvider; this.currentCategoryProvider = currentCategoryProvider; this.cartProvider = cartProvider; }
public CartController(ISalePosRepository salePos, ISaleRepository sale, IGoodsRepository good, IUnitOfWork unit, IClassificationGoodRepository typeGood, ICookieConsumer storage, ICartProvider <UserOrder> provider) : base(storage) { _provider = provider; _typeGood = typeGood; _goods = good; _unit = unit; _salePos = salePos; _sale = sale; }
/// <summary> /// Cart constructor /// </summary> /// <param name="cartProvider">Provider to get current cart.</param> /// <param name="cartPricingService">Service to set price on cart and items.</param> public Cart(ICartProvider cartProvider, ICartPricingService cartPricingService) { if (cartProvider == null) { throw new ArgumentNullException("cartProvider"); } if (cartPricingService == null) { throw new ArgumentNullException("cartPricingService"); } this.cartProvider = cartProvider; this.cartPricingService = cartPricingService; }
/// <summary> /// Cart constructor /// </summary> /// <param name="cartProvider">Provider to get current cart.</param> /// <param name="cartPricingService">Service to set price on cart and items.</param> public Cart(ICartProvider cartProvider, ICartPricingService cartPricingService, IVatDisplayPreferenceProvider vatDisplayPreferenceProvider) { if (cartProvider == null) { throw new ArgumentNullException("cartProvider"); } if (cartPricingService == null) { throw new ArgumentNullException("cartPricingService"); } if (vatDisplayPreferenceProvider == null) { throw new ArgumentNullException("vatDisplayPreferenceProvider"); } this.cartProvider = cartProvider; this.cartPricingService = cartPricingService; this.pricesIncludeVat = vatDisplayPreferenceProvider.ShowPricesIncludingVat(); }
public OrderController(ICartProvider cartProvider, IAuthProvider authProvider, IReservationOrdersProvider reservationOrdersProvider) { _cartProvider = cartProvider; _authProvider = authProvider; _reservationOrdersProvider = reservationOrdersProvider; }
public HeaderViewComponent(ICartProvider cartProvider) { this.cartProvider = cartProvider; }
public EmailOrderProcessor(EmailSettings settings, ICartProvider cartProvider, IHostingEnvironment hostingEnvironment) { _emailSettings = settings; _cartProvider = cartProvider; _hostingEnvironment = hostingEnvironment; }
public CartSummary(ICartProvider cartProvider) { _cartProvider = cartProvider; }
public HomeController(ICharacterRepository characterRepository, ICartProvider cartProvider) { this.repository = characterRepository; this.cartProvider = cartProvider; }
public AddItemToCartHandler(ICartProvider cartProvider, IProductRepository productRepository) { _cartProvider = cartProvider; _productRepository = productRepository; }
public CartController(IGameRepository repo, IOrderProcessor processor, ICartProvider cartProvider) { _repository = repo; _orderProcessor = processor; _cartProvider = cartProvider; }
public GetCartHandler(ICartProvider cartProvider) { _cartProvider = cartProvider; }
public ShoppingCartHelper(int userId) { this._cartProvider = new CookieProvider<ShoppingCartInfo, ShoppingCartItem>(userId); }