Пример #1
0
 public void Ingredients()
 {
     Pantry s = new Pantry();
     Ingredient mince = s.Find("Prime Beef Mince").Ingredient;
     Ingredient onion = s.Find("Onion").Ingredient.Prepare("Chopped");
     Ingredient beans = s.Find("Mexican Beans", "Can").Ingredient;
 }
Пример #2
0
        public void Pantry()
        {
            Pantry s = new Pantry();
            Ingredient mince = s.Find("Prime Beef Mince").Ingredient;
            Ingredient onion = s.Find("Onion").Ingredient.Prepare("Chopped");
            Ingredient beans = s.Find("Mexican Beans", "Can").Ingredient;

            Recipe r = new Recipe();
            r.IngredientsRequired.Add(Measure.Weight<Grams>(500), mince);
            r.IngredientsRequired.Add(Measure.Quantity<Units>(0.5), onion);
            r.IngredientsRequired.Add(Measure.Quantity<Units>(1), beans);
        }