Exemple #1
0
 public ShoppingCartsController(CartIdProvider cartIdProvider,
                                IGetShopItemsListQuery getShopItemsListQuery,
                                IGetShoppingCartItemsListQuery getShoppingCartItemsListQuery,
                                IAddShoppingCartItemCommand addShoppingCartItemCommand,
                                IRemoveShoppingCartItemCommand removeShoppingCartItemCommand)
 {
     //_cartIdProvider = cartIdProvider;
     _getShopItemsListQuery         = getShopItemsListQuery;
     _getShoppingCartItemsListQuery = getShoppingCartItemsListQuery;
     _addShoppingCartItemCommand    = addShoppingCartItemCommand;
     _removeShoppingCartItemCommand = removeShoppingCartItemCommand;
     _cartIdProvider = cartIdProvider;
 }
 public OrdersController(CartIdProvider cartIdProvider,
                         IGetShoppingCartItemsListQuery getShoppingCartItemsListQuery,
                         ICreateOrderCommand createOrderCommand,
                         IGetApplicationUserDetails getApplicationUserDetails,
                         IGetApplicationUserId getApplicationUserId,
                         ISaveApplicationUserDetails saveApplicationUserDetails,
                         IGetUserOrdersListQuery getUserOrdersListQuery,
                         IDateTimeService dateTimeService,
                         IOrdersListViewModelFactory ordersListViewModelFactory,
                         IEmailSender emailSender)
 {
     _cartIdProvider = cartIdProvider;
     _getShoppingCartItemsListQuery = getShoppingCartItemsListQuery;
     _createOrderCommand            = createOrderCommand;
     _getApplicationUserDetails     = getApplicationUserDetails;
     _getApplicationUserId          = getApplicationUserId;
     _saveApplicationUserDetails    = saveApplicationUserDetails;
     _getUserOrdersListQuery        = getUserOrdersListQuery;
     _dateTimeService            = dateTimeService;
     _ordersListViewModelFactory = ordersListViewModelFactory;
     _emailSender = emailSender;
 }
 public ShoppingCartSummary(CartIdProvider cartIdProvider,
                            IGetShoppingCartItemsListQuery getShoppingCartItemsListQuery)
 {
     _getShoppingCartItemsListQuery = getShoppingCartItemsListQuery;
     _cartIdProvider = cartIdProvider;
 }