using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { internal class Ingredient { #region Attributes /// /// Name of the ingredient /// private string name; /// /// get the quatity of ingredient /// private Quantity quantity; #endregion #region public string Name { get => name; set { if (value == null) { throw new ArgumentNullException("Impossible de ne pas avoir de nom pour l'ingrédient"); } } } public Quantity QuantityP { get => quantity; set => quantity = value; } #endregion } }