diff --git a/MCTG/DataPersistence/Stubs.cs b/MCTG/DataPersistence/Stubs.cs index 87e62b9..a6fece1 100644 --- a/MCTG/DataPersistence/Stubs.cs +++ b/MCTG/DataPersistence/Stubs.cs @@ -38,7 +38,8 @@ namespace DataPersistence }), new Recipe( authorMail: "admin@mctg.fr", - title: "Cookies au chocolat", id: null, + title: "Cookies au chocolat", + id: null, preparationSteps: new[] { new PreparationStep(1, "Moulinez la pâte."), diff --git a/MCTG/Model/Recipes/Ingredient/Quantity.cs b/MCTG/Model/Recipes/Ingredient/Quantity.cs index 35ab858..9a9a930 100644 --- a/MCTG/Model/Recipes/Ingredient/Quantity.cs +++ b/MCTG/Model/Recipes/Ingredient/Quantity.cs @@ -67,7 +67,7 @@ namespace Model public override string ToString() { - return $"{Number}{UnitQ}"; + return $"{Number} {UnitQ} de : "; } } } diff --git a/MCTG/Model/Recipes/Recipe.cs b/MCTG/Model/Recipes/Recipe.cs index dc5cf2c..9f220ca 100644 --- a/MCTG/Model/Recipes/Recipe.cs +++ b/MCTG/Model/Recipes/Recipe.cs @@ -40,6 +40,8 @@ namespace Model [DataMember(Name = "authorMail")] public string? AuthorMail { get; private set; } + public string Toto { get; set; } = "Coucou"; + /// /// The Title of the recipe.
/// Set to "No title." when the value passed is null, empty or contain white spaces. @@ -144,17 +146,17 @@ namespace Model { } - ///// - ///// - ///// - ///// The title of the recipe. - ///// The id of the recipe. If not given, get a new id. - ///// Image that reppresent the recipe. - ///// The steps of the preparation of the meal. - //public Recipe(string title, int? id, string picture, params PreparationStep[] preparationSteps) - // : this(title, id, null, picture, new List(), new List(), preparationSteps) - //{ - //} + /// + /// + /// + /// The title of the recipe. + /// The id of the recipe. If not given, get a new id. + /// Image that reppresent the recipe. + /// The steps of the preparation of the meal. + public Recipe() + : this("", null, null, null, new List(), new List(),new PreparationStep[0]) + { + } #endregion diff --git a/MCTG/Views/AddRecipe.xaml b/MCTG/Views/AddRecipe.xaml index 3f2460b..8010ac4 100644 --- a/MCTG/Views/AddRecipe.xaml +++ b/MCTG/Views/AddRecipe.xaml @@ -63,9 +63,7 @@