I forgot to save Quantity... second push
continuous-integration/drone/push Build is passing Details

pull/47/head
Roxane ROSSETTO 2 years ago
parent 6376250b45
commit e3d83292b8

@ -6,7 +6,31 @@ using System.Threading.Tasks;
namespace Model
{
internal class Quantity
public class Quantity
{
#region Attributes
/// <summary>
/// get the quatity of ingredient
/// </summary>
private int number;
/// <summary>
/// have the Unit enum of the quantity of ingredient
/// </summary>
private Unit unit;
#endregion
public int Number
{
get { return number; }
set
{
if (value <0 )
{
throw new ArgumentException("Si la quantité est inférieur à 0, enlever l'ingrédient!");
}
number = value;
}
}
}
}

Loading…
Cancel
Save