You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
955 B
33 lines
955 B
// See https://aka.ms/new-console-template for more information
|
|
|
|
using ConsoleApp;
|
|
using ConsoleApp.Menu;
|
|
using Model;
|
|
|
|
using System.Text;
|
|
|
|
Console.WriteLine("Hello, World!\n\n");
|
|
|
|
|
|
// TESTS:
|
|
|
|
Stub stub = new Stub();
|
|
|
|
List<User> users = stub.ConstrucList();
|
|
RecipeCollection recipes = new RecipeCollection("all", stub.LoadRecipes().ToArray());
|
|
|
|
recipes[0].AddReview(new Review(users[1], 1, "bonne recette !1"));
|
|
recipes[0].AddReview(new Review(users[1], 1, "bonne recette !2"));
|
|
recipes[0].AddReview(new Review(users[1], 4, "bonne recette !3"));
|
|
recipes[0].AddReview(new Review(users[1], 5, "bonne recette !4"));
|
|
recipes[0].AddReview(new Review(users[1], 3, "bonne recette !5"));
|
|
recipes[0].AddReview(new Review(users[1], 2, "bonne recette !6"));
|
|
|
|
Console.WriteLine(recipes);
|
|
Console.WriteLine("\n---------------------------\n");
|
|
|
|
Console.WriteLine(recipes[0].GetReviews());
|
|
|
|
// press any key to quit
|
|
Console.ReadKey();
|