Example #1
0
        private void CookAVegitable(string vegitableName, Bowl bowl)
        {
            var vegitable = this.factory.GetAVegitable(vegitableName);

            this.Peel(vegitable);
            this.Cut(vegitable);
            bowl.Add(vegitable);
        }
Example #2
0
        public Bowl MakeASalad(ICollection <string> vegitables)
        {
            Bowl bowl = this.factory.GetBowl();

            foreach (var vegitable in vegitables)
            {
                this.CookAVegitable(vegitable, bowl);
            }

            return(bowl);
        }