Example #1
0
        public ShoppingListUpdater UpdateItem(ShoppingListItem item, Func <ShoppingListItemUpdateAction, ShoppingListItemUpdateAction> updateAction)
        {
            var action = ShoppingListItemUpdater.Create(item);
            var result = updateAction(action);

            updateQueue.Add(result.Updater);
            return(this);
        }
Example #2
0
 public ShoppingListItemUpdateAction(ShoppingListItemUpdater updater)
 {
     this.updater = updater;
 }
Example #3
0
        public static ShoppingListItemUpdateAction Create(ShoppingListItem item)
        {
            var updater = new ShoppingListItemUpdater(item);

            return(new ShoppingListItemUpdateAction(updater));
        }
Example #4
0
 public ShoppingListUpdater UpdateItem(ShoppingListItem item, ShoppingListItemUpdater updater)
 {
     updateQueue.Add(updater);
     return(this);
 }
Example #5
0
 public ShoppingListUpdater UpdateItem(ShoppingListItem item, ShoppingListItemUpdater updater)
 {
     updateQueue.Add(updater);
      return this;
 }
Example #6
0
 public static ShoppingListItemUpdateAction Create(ShoppingListItem item)
 {
     var updater = new ShoppingListItemUpdater(item);
      return new ShoppingListItemUpdateAction(updater);
 }
Example #7
0
 public ShoppingListItemUpdateAction(ShoppingListItemUpdater updater)
 {
     this.updater = updater;
 }