Ingredient class finished and tested
continuous-integration/drone/push Build is failing Details

pull/47/head
Roxane 2 years ago
parent 649ed6f72f
commit dc8214915a

@ -1,32 +1,11 @@
using System;
using ConsoleApp;
using Model;
namespace Program;
Stub_Ingredient stub = new Stub_Ingredient();
public static class Program
{
public static void Main()
{
Console.WriteLine("Helle World!");
Ingredient ing = stub.testIngredient();
Recipe recipe = new Recipe(
1,
"Cookies aux pépites de chocolat",
new List<string>(new string[]{
"2 pommes",
"3L de vin",
"500g de farine"
}),
"Etape 1:\n"
+ "\tCouper les pommes\n"
+ "Etape 2:\n"
+ "\tLes disposer sur le plat et mettre le vin dessus\n"
+ "Etape 3:\n"
+ "\tMettez toute la farine ensuite, puis 4h32 au four.\n"
+ "\nDégustez c'est prêt !"
);
Console.WriteLine(ing);
recipe.Display();
}
}

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
namespace ConsoleApp
{
internal struct Stub_Ingredient
{
public Ingredient testIngredient()
{
Ingredient ingredient = new Ingredient("Patate", new Quantity(5, Unit.unit));
return ingredient;
}
}
}

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Model
{
internal class Ingredient
public class Ingredient
{
#region Attributes

@ -11,5 +11,5 @@ namespace Model
/// <list type="Unit, kG, mG, G, L, cL, mL"/>
/// </summary>
public enum Unit
{ Unit, kG, mG, G, L, cL, mL };
{ unit, kG, mG, G, L, cL, mL };
}

Loading…
Cancel
Save