Пример #1
0
 public RecipeEditor(IList <IIngredient> ingredients, IngredientCollection recipe)
     : this(ingredients,
            recipe?.ElementAtOrDefault(0),
            recipe?.ElementAtOrDefault(1),
            recipe?.ElementAtOrDefault(2))
 {
 }
Пример #2
0
 public Inventory()
 {
     _Ingredients = new IngredientCollection();
     _Recipes     = new RecipeCollection();
 }
Пример #3
0
 public Reaction(IngredientCollection inputs, (string ingredient, int quantity) output)