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