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