You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SAE-2.01/MCTG/Model/Ingredient.cs

47 lines
960 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
internal class Ingredient
{
#region Attributes
/// <summary>
/// Name of the ingredient
/// </summary>
private string name;
/// <summary>
/// get the quatity of ingredient
/// </summary>
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
}
}