public ShoppingListUpdater AddItems(Func <ShoppingListAddAction, ShoppingListAddAction> addAction) { var action = ShoppingListAdder.Create(); var result = addAction(action); addQueue.Add(result.Adder); return(this); }
public ShoppingListAddAction(ShoppingListAdder adder) { this.adder = adder; }
public static ShoppingListAddAction Create() { var adder = new ShoppingListAdder(); return(new ShoppingListAddAction(adder)); }
public ShoppingListUpdater AddItems(ShoppingListAdder adder) { addQueue.Add(adder); return(this); }
public ShoppingListCreator AddItems(ShoppingListAdder adder) { addQueue.Add(adder); return(this); }
public ShoppingListUpdater AddItems(ShoppingListAdder adder) { addQueue.Add(adder); return this; }
public ShoppingListCreator AddItems(ShoppingListAdder adder) { addQueue.Add(adder); return this; }
public static ShoppingListAddAction Create() { var adder = new ShoppingListAdder(); return new ShoppingListAddAction(adder); }