Exemple #1
0
        public ShoppingListUpdater AddItems(Func <ShoppingListAddAction, ShoppingListAddAction> addAction)
        {
            var action = ShoppingListAdder.Create();
            var result = addAction(action);

            addQueue.Add(result.Adder);
            return(this);
        }
Exemple #2
0
 public ShoppingListAddAction(ShoppingListAdder adder)
 {
     this.adder = adder;
 }
Exemple #3
0
        public static ShoppingListAddAction Create()
        {
            var adder = new ShoppingListAdder();

            return(new ShoppingListAddAction(adder));
        }
Exemple #4
0
 public ShoppingListUpdater AddItems(ShoppingListAdder adder)
 {
     addQueue.Add(adder);
     return(this);
 }
Exemple #5
0
 public ShoppingListCreator AddItems(ShoppingListAdder adder)
 {
     addQueue.Add(adder);
     return(this);
 }
 public ShoppingListAddAction(ShoppingListAdder adder)
 {
     this.adder = adder;
 }
 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);
 }