Example #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;
 }
Example #2
0
 public ShopItemsController(IGetShopItemsListQuery getShopItemsListQuery,
                            IGetShopItemsListByCategoryQuery getShopItemsListByCategoryQuery)
 {
     _getShopItemsListQuery           = getShopItemsListQuery;
     _getShopItemsListByCategoryQuery = getShopItemsListByCategoryQuery;
 }