|
|
@ -6,7 +6,7 @@ using System.Text;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DataPersistence
|
|
|
|
namespace FakePersistance
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// The subs class is a group of prefabricated object that can only be loaded. It only use is for testing.
|
|
|
|
/// The subs class is a group of prefabricated object that can only be loaded. It only use is for testing.
|
|
|
@ -22,7 +22,7 @@ namespace DataPersistence
|
|
|
|
nameof(Recipe),
|
|
|
|
nameof(Recipe),
|
|
|
|
new List<object>(new[]
|
|
|
|
new List<object>(new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Recipe("Cookies classiques", RecipeType.Dessert, null, "admin@mctg.fr", "")
|
|
|
|
new Recipe("Cookies classiques", RecipeType.Dessert, Priority.Easy, null, "admin@mctg.fr", "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -42,7 +42,8 @@ namespace DataPersistence
|
|
|
|
},
|
|
|
|
},
|
|
|
|
new Recipe(
|
|
|
|
new Recipe(
|
|
|
|
title: "Cookies au chocolat",
|
|
|
|
title: "Cookies au chocolat",
|
|
|
|
type: RecipeType.Dessert)
|
|
|
|
type: RecipeType.Dessert,
|
|
|
|
|
|
|
|
priority: Priority.Fast)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -57,7 +58,8 @@ namespace DataPersistence
|
|
|
|
},
|
|
|
|
},
|
|
|
|
new Recipe(
|
|
|
|
new Recipe(
|
|
|
|
title: "Gateau nature",
|
|
|
|
title: "Gateau nature",
|
|
|
|
type: RecipeType.Dessert)
|
|
|
|
type: RecipeType.Dessert,
|
|
|
|
|
|
|
|
priority: Priority.Gourmet)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -77,7 +79,8 @@ namespace DataPersistence
|
|
|
|
},
|
|
|
|
},
|
|
|
|
new Recipe(
|
|
|
|
new Recipe(
|
|
|
|
title: "Gateau au pommes",
|
|
|
|
title: "Gateau au pommes",
|
|
|
|
type: RecipeType.Dessert)
|
|
|
|
type: RecipeType.Dessert,
|
|
|
|
|
|
|
|
priority: Priority.Light)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PreparationSteps = new List<PreparationStep>
|
|
|
|
PreparationSteps = new List<PreparationStep>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -90,6 +93,7 @@ namespace DataPersistence
|
|
|
|
new Recipe(
|
|
|
|
new Recipe(
|
|
|
|
title: "Gateau au chocolat",
|
|
|
|
title: "Gateau au chocolat",
|
|
|
|
type: RecipeType.Dessert,
|
|
|
|
type: RecipeType.Dessert,
|
|
|
|
|
|
|
|
priority: Priority.Economic,
|
|
|
|
id: null, authorMail: "pedrosamigos@hotmail.com")
|
|
|
|
id: null, authorMail: "pedrosamigos@hotmail.com")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
@ -110,6 +114,7 @@ namespace DataPersistence
|
|
|
|
new Recipe(
|
|
|
|
new Recipe(
|
|
|
|
title: "Dinde au jambon",
|
|
|
|
title: "Dinde au jambon",
|
|
|
|
type: RecipeType.Dish,
|
|
|
|
type: RecipeType.Dish,
|
|
|
|
|
|
|
|
priority: Priority.Easy,
|
|
|
|
id: null, authorMail: "pedrosamigos@hotmail.com")
|
|
|
|
id: null, authorMail: "pedrosamigos@hotmail.com")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
@ -130,6 +135,7 @@ namespace DataPersistence
|
|
|
|
new Recipe(
|
|
|
|
new Recipe(
|
|
|
|
title: "Poulet au curry",
|
|
|
|
title: "Poulet au curry",
|
|
|
|
type: RecipeType.Dish,
|
|
|
|
type: RecipeType.Dish,
|
|
|
|
|
|
|
|
priority: Priority.Gourmet,
|
|
|
|
id: null, authorMail: "pedrosamigos@hotmail.com")
|
|
|
|
id: null, authorMail: "pedrosamigos@hotmail.com")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ingredients = new List<Ingredient>
|
|
|
|
Ingredients = new List<Ingredient>
|