public ShoppingListUpdater UpdateItem(ShoppingListItem item, Func <ShoppingListItemUpdateAction, ShoppingListItemUpdateAction> updateAction) { var action = ShoppingListItemUpdater.Create(item); var result = updateAction(action); updateQueue.Add(result.Updater); return(this); }
public ShoppingListItemUpdateAction(ShoppingListItemUpdater updater) { this.updater = updater; }
public static ShoppingListItemUpdateAction Create(ShoppingListItem item) { var updater = new ShoppingListItemUpdater(item); return(new ShoppingListItemUpdateAction(updater)); }
public ShoppingListUpdater UpdateItem(ShoppingListItem item, ShoppingListItemUpdater updater) { updateQueue.Add(updater); return(this); }
public ShoppingListUpdater UpdateItem(ShoppingListItem item, ShoppingListItemUpdater updater) { updateQueue.Add(updater); return this; }
public static ShoppingListItemUpdateAction Create(ShoppingListItem item) { var updater = new ShoppingListItemUpdater(item); return new ShoppingListItemUpdateAction(updater); }