From 9b2fdd3f720e53feed6d5ff956452f3e8ae85707 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:01:32 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Ajout=20de=20la=20classe=20SeedDataLoca?= =?UTF-8?q?l=20pour=20peupler=20les=20entit=C3=A9s=20Artiste,=20Style,=20T?= =?UTF-8?q?itre=20et=20Commentaire=20avec=20des=20donn=C3=A9es=20fictives?= =?UTF-8?q?=20#39=20#37=20#36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Entity/Fixtures/SeedDataLocal.cs | 142 +++++++++++++++++- .../ITtitreRepository.cs | 2 +- 2 files changed, 142 insertions(+), 2 deletions(-) diff --git a/Webzine.Entity/Fixtures/SeedDataLocal.cs b/Webzine.Entity/Fixtures/SeedDataLocal.cs index 71eb46f..15ef444 100644 --- a/Webzine.Entity/Fixtures/SeedDataLocal.cs +++ b/Webzine.Entity/Fixtures/SeedDataLocal.cs @@ -1,5 +1,145 @@ -namespace Webzine.EntitiesContext; +namespace Webzine.Entity.Fixtures; + +using Webzine.Entity; +using Faker; +using System; +using System.Collections.Generic; +using System.Linq; public class SeedDataLocal { + public Dictionary RealMusicData { get; set; } + = new Dictionary + { + // Juliana Chahayed - Calm covers + { "juliana_chahayed_1", ("https://open.spotify.com/intl-fr/track/0qYLUdJQMhrCFA9dNZGcnm?si=b4fd45727a354a31", + "https://i.scdn.co/image/ab67616d0000b2738e8e7b8f8f8f8f8f8f8f8f8") }, + + // Mister V - Chanson beauf + { "mister_v_1", ("https://youtu.be/JeqUw7sGUK8?si=FnmFR2EgkVY6MhqQ", + "https://img.youtube.com/vi/JeqUw7sGUK8/maxresdefault.jpg") }, + + // La Compagnie Créole + { "compagnie_creole_1", ("https://youtu.be/wfxt1SGWAI8", + "https://img.youtube.com/vi/wfxt1SGWAI8/maxresdefault.jpg") }, + + // FEMTOGO - Un autre jour + { "femto_1", ("https://open.spotify.com/intl-fr/track/0qYLUdJQMhrCFA9dNZGcnm?si=b4fd45727a354a31", + "https://i.scdn.co/image/ab67616d0000b2738e8e7b8f8f8f8f8f8f8f8f8") }, + + // Chat Noir style songs (Théo De Sousa shares) + { "chat_noir_1", ("https://youtu.be/OTi4-q-_Tj0?si=SNnLd-6Y893nL5Au", + "https://img.youtube.com/vi/OTi4-q-_Tj0/maxresdefault.jpg") }, + + { "chat_noir_2", ("https://youtu.be/X-rJ01EyiAI?si=gH9m_U8oXI35OgWu", + "https://img.youtube.com/vi/X-rJ01EyiAI/maxresdefault.jpg") }, + + { "chat_noir_3", ("https://youtu.be/7lIM0wSx7kQ?si=S-RAsLzd4SiCQhE4", + "https://img.youtube.com/vi/7lIM0wSx7kQ/maxresdefault.jpg") }, + + { "chat_noir_4", ("https://youtu.be/dbxyKR1P8vA?si=aRzdYBhwvKptV8Ff", + "https://img.youtube.com/vi/dbxyKR1P8vA/maxresdefault.jpg") }, + + { "chat_noir_5", ("https://youtu.be/DDHvKo5NnII?si=NFRkdVQL2mELP0yn", + "https://img.youtube.com/vi/DDHvKo5NnII/maxresdefault.jpg") }, + + { "chat_noir_6", ("https://youtu.be/J9LgHNf2Qy0?si=YGO1ggiLkefa9901", + "https://img.youtube.com/vi/J9LgHNf2Qy0/maxresdefault.jpg") }, + + { "chat_noir_7", ("https://youtu.be/oadhHk2xs6c?si=mbnJCA6SGsoYXnUK", + "https://img.youtube.com/vi/oadhHk2xs6c/maxresdefault.jpg") }, + + { "chat_noir_8", ("https://youtu.be/6K1zCgkBaoE?si=quq9vQLJ-AmzjRJJ", + "https://img.youtube.com/vi/6K1zCgkBaoE/maxresdefault.jpg") }, + + // German rapper (Baptiste Nodon) + { "german_rapper_1", ("https://www.youtube.com/watch?v=DWpg71HJt24", + "https://img.youtube.com/vi/DWpg71HJt24/maxresdefault.jpg") }, + + // Nizard Verdenal share + { "nizard_1", ("https://youtu.be/1fjA68k8DAU?si=2PuZSquVQGvfmQkZ", + "https://img.youtube.com/vi/1fjA68k8DAU/maxresdefault.jpg") }, + }; + + public List GenerateArtists(int count) + { + + } + + public List