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; }
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); }