diff --git a/Webzine.Entity/Fixtures/ArtisteFactory.cs b/Webzine.Entity/Fixtures/ArtisteFactory.cs
index d8ecb26..44f297a 100644
--- a/Webzine.Entity/Fixtures/ArtisteFactory.cs
+++ b/Webzine.Entity/Fixtures/ArtisteFactory.cs
@@ -49,5 +49,20 @@ namespace Webzine.Entity.Fixtures
return artisteFaker.Generate();
}
+
+ ///
+ /// Permet de retourner une liste d'artiste pour seeder la base
+ /// de données.
+ ///
+ ///
+ /// Liste d'artiste.
+ public static List CreerListeArtiste(int nombre)
+ {
+ Faker faker = new Faker("fr")
+ .RuleFor(a => a.Nom, f => f.Person.FullName)
+ .RuleFor(a => a.Biographie, f => f.Lorem.Paragraph(2));
+
+ return faker.Generate(nombre);
+ }
}
}
\ No newline at end of file
diff --git a/Webzine.Entity/Fixtures/CommentaireFactory.cs b/Webzine.Entity/Fixtures/CommentaireFactory.cs
new file mode 100644
index 0000000..790cfc2
--- /dev/null
+++ b/Webzine.Entity/Fixtures/CommentaireFactory.cs
@@ -0,0 +1,33 @@
+//
+// Copyright (c) PlaceholderCompany. All rights reserved.
+//
+
+using Bogus;
+
+namespace Webzine.Entity.Fixtures
+{
+ public class CommentaireFactory
+ {
+ ///
+ /// Seeder pour la base de données.
+ ///
+ /// Titre.
+ /// Min.
+ /// Max.
+ /// Liste de commentaire.
+ public static List CreerListeCommentaire(Titre titre, int min = 0, int max = 5)
+ {
+ Random random = new Random();
+ int count = random.Next(min, max + 1);
+
+ Faker faker = new Faker("fr")
+ .RuleFor(c => c.Auteur, f => f.Internet.UserName())
+ .RuleFor(c => c.Contenu, f => f.Lorem.Sentences(2))
+ .RuleFor(c => c.DateCreation, f => f.Date.Recent(60))
+ .RuleFor(c => c.Titre, _ => titre)
+ .RuleFor(c => c.IdTitre, _ => titre.IdTitre);
+
+ return faker.Generate(count);
+ }
+ }
+}
diff --git a/Webzine.Entity/Fixtures/StyleFactory.cs b/Webzine.Entity/Fixtures/StyleFactory.cs
new file mode 100644
index 0000000..039f6f7
--- /dev/null
+++ b/Webzine.Entity/Fixtures/StyleFactory.cs
@@ -0,0 +1,53 @@
+//
+// Copyright (c) PlaceholderCompany. All rights reserved.
+//
+
+namespace Webzine.Entity.Fixtures
+{
+ using Webzine.Entity;
+ public class StyleFactory
+ {
+ ///
+ /// Générer une liste de style pour seeder la base
+ /// de données.
+ ///
+ /// Liste de style.
+ public static List