Example #1
0
    public Bowl Cook()
    {
        var resultBowl = new Bowl();
        var vegetables = new List<Vegetable>();

        vegetables.Add(Potato.GetPotato());
        vegetables.Add(Carrot.GetCarrot());

        foreach (var vegetable in vegetables)
        {
            this.Peel(vegetable);
            this.Cut(vegetable);
            resultBowl.AddContent(vegetable);
        }

        return resultBowl;
    }