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

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

            return(new ShoppingListAddAction(adder));
        }
예제 #4
0
 public ShoppingListUpdater AddItems(ShoppingListAdder adder)
 {
     addQueue.Add(adder);
     return(this);
 }
예제 #5
0
 public ShoppingListCreator AddItems(ShoppingListAdder adder)
 {
     addQueue.Add(adder);
     return(this);
 }
예제 #6
0
 public ShoppingListAddAction(ShoppingListAdder adder)
 {
     this.adder = adder;
 }
예제 #7
0
 public ShoppingListUpdater AddItems(ShoppingListAdder adder)
 {
     addQueue.Add(adder);
      return this;
 }
예제 #8
0
 public ShoppingListCreator AddItems(ShoppingListAdder adder)
 {
     addQueue.Add(adder);
      return this;
 }
예제 #9
0
 public static ShoppingListAddAction Create()
 {
     var adder = new ShoppingListAdder();
      return new ShoppingListAddAction(adder);
 }