static void Main() { var mixingBowl = new MixingBowl(); Jack.Use(mixingBowl); Jill.Use(mixingBowl); mixingBowl.Wash(); Console.ReadLine(); }
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); }
public static void Use(MixingBowl mixingBowl) { mixingBowl.Wear(); }