Esempio n. 1
0
        public void Cook()
        {
            var firstVegetable  = this.GetVegetable(this.firstVegetable);
            var secondVegetable = this.GetVegetable(this.secondVegetable);

            this.Peel(secondVegetable);
            this.Peel(firstVegetable);
            this.bowl = this.GetBowl();
            this.Cut(secondVegetable);
            this.Cut(firstVegetable);
            this.bowl.Add(firstVegetable);
            this.bowl.Add(secondVegetable);
        }
Esempio n. 2
0
        public void Cook(IVegetable veggie)
        {
            if (veggie == null)
            {
                throw new ArgumentNullException();
            }

            Peel(veggie);
            Cut(veggie);

            IBowl bowl = GetBowl();

            bowl.Add(veggie);
        }
Esempio n. 3
0
        public void Cook()
        {
            IPotato potato = GetPotato();
            ICarrot carrot = GetCarrot();

            Peel(potato);
            Peel(carrot);

            Cut(potato);
            Cut(carrot);

            IBowl bowl = GetBowl();

            bowl.Add(carrot);
            bowl.Add(potato);
        }
 public Dalmatian(IBowl bowl, IDogLead dogLead, IHut hut)
 {
     Bowl    = bowl;
     DogLead = dogLead;
     Hut     = hut;
 }
Esempio n. 5
0
 public Chef(IVegetable firstVegetable, IVegetable secondVegetable, IBowl bowl)
 {
     this.firstVegetable  = firstVegetable;
     this.secondVegetable = secondVegetable;
     this.bowl            = bowl;
 }
Esempio n. 6
0
 public York(IBowl bowl, IDogLead dogLead, IHut hut)
 {
     Bowl    = bowl;
     DogLead = dogLead;
     Hut     = hut;
 }