enum unit finished and quantity class finished, and I'm working on Ingredient
continuous-integration/drone/push Build is passing Details

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

@ -8,5 +8,39 @@ 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
}
}

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
internal class Quantity
{
}
}

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public enum Unit
{ Unit, kG, mG, G, L, cL, mL };
}
Loading…
Cancel
Save