Esempio n. 1
0
 static void Main()
 {
     var mixingBowl = new MixingBowl();
     Jack.Use(mixingBowl);
     Jill.Use(mixingBowl);
     mixingBowl.Wash();
     Console.ReadLine();
 }
Esempio n. 2
0
 public static void Use(MixingBowl mixingBowl)
 {
     var ingredients = new List<IConsumable>
         {
             new WhitePowder("flour"),
             new WhitePowder("baking powder"),
             new WhitePowder("salt"),
             new WhitePowder("sugar"),
             new Milk(),
             new Butter(),
             new Eggs(),
         };
     mixingBowl.Mix(ingredients);
 }
Esempio n. 3
0
 public static void Use(MixingBowl mixingBowl)
 {
     mixingBowl.Wear();
 }