예제 #1
0
        /// <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;
        }
        /// <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;
        }
예제 #3
0
 public CartService(ICartProvider cartProvider,
                    IProductRepository productRepository,
                    IUserRepository userRepository)
 {
     _cartProvider      = cartProvider;
     _productRepository = productRepository;
     _userRepository    = userRepository;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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;
 }
예제 #7
0
 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;
 }
예제 #9
0
        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;
        }
예제 #10
0
        /// <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;
        }
예제 #11
0
        /// <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;
        }
예제 #12
0
        /// <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();
        }
예제 #13
0
 public OrderController(ICartProvider cartProvider, IAuthProvider authProvider, IReservationOrdersProvider reservationOrdersProvider)
 {
     _cartProvider = cartProvider;
     _authProvider = authProvider;
     _reservationOrdersProvider = reservationOrdersProvider;
 }
예제 #14
0
 public HeaderViewComponent(ICartProvider cartProvider)
 {
     this.cartProvider = cartProvider;
 }
예제 #15
0
 public EmailOrderProcessor(EmailSettings settings, ICartProvider cartProvider, IHostingEnvironment hostingEnvironment)
 {
     _emailSettings      = settings;
     _cartProvider       = cartProvider;
     _hostingEnvironment = hostingEnvironment;
 }
예제 #16
0
 public CartSummary(ICartProvider cartProvider)
 {
     _cartProvider = cartProvider;
 }
예제 #17
0
 public HomeController(ICharacterRepository characterRepository, ICartProvider cartProvider)
 {
     this.repository   = characterRepository;
     this.cartProvider = cartProvider;
 }
예제 #18
0
 public AddItemToCartHandler(ICartProvider cartProvider,
                             IProductRepository productRepository)
 {
     _cartProvider      = cartProvider;
     _productRepository = productRepository;
 }
예제 #19
0
 public CartController(IGameRepository repo, IOrderProcessor processor, ICartProvider cartProvider)
 {
     _repository     = repo;
     _orderProcessor = processor;
     _cartProvider   = cartProvider;
 }
예제 #20
0
 public GetCartHandler(ICartProvider cartProvider)
 {
     _cartProvider = cartProvider;
 }
예제 #21
0
 public ShoppingCartHelper(int userId)
 {
     this._cartProvider = new CookieProvider<ShoppingCartInfo, ShoppingCartItem>(userId);
 }
 public OrderController(ICartProvider cartProvider, IAuthProvider authProvider, IReservationOrdersProvider reservationOrdersProvider)
 {
     _cartProvider = cartProvider;
     _authProvider = authProvider;
     _reservationOrdersProvider = reservationOrdersProvider;
 }