Example #1
0
        public void Cook(Vegetable vegetable)
        {
            Potato potato = GetPotato();
            Carrot carrot = GetCarrot();
            Bowl bowl;

            Peel(potato);
            Peel(carrot);

            bowl = GetBowl();

            Cut(potato);
            Cut(carrot);

            bowl.Add(carrot);
            bowl.Add(potato);
        }
Example #2
0
 internal void Add(Vegetable carrot)
 {
     //...
 }
Example #3
0
 public void Add(Vegetable vegetable)
 {
     this.vegetables.Add(vegetable);
 }
Example #4
0
 private void Peel(Vegetable vegetable)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public void Add(Vegetable vegetable)
 {
     this.setOfVegetables.Add(vegetable);
 }
Example #6
0
 private void Cut(Vegetable vegetable)
 {
     ////...
 }
Example #7
0
        ////not implemented: TODO

        /// <summary>
        /// Method for adding vegetable.
        /// </summary>
        /// <param name="vegetable">Vegetable to add</param>
        internal void Add(Vegetable vegetable)
        {
            throw new NotImplementedException();
        }
Example #8
0
 private void Peel(Vegetable potato)
 {
     ////...
 }
Example #9
0
 public void Cook(Vegetable vegetable)
 {
     Console.WriteLine("Cook vegetable {0}", vegetable);
 }
Example #10
0
 private void Peel(Vegetable potato)
 {
     ////...
 }
Example #11
0
 private void Cut(Vegetable vegetable)
 {
     ////...
 }
Example #12
0
 public void Cook(Vegetable vegetable)
 {
     Console.WriteLine("Cook vegetable {0}", vegetable);
 }