diff --git a/Webzine.Entity/Fixtures/CommentaireFactory.cs b/Webzine.Entity/Fixtures/CommentaireFactory.cs new file mode 100644 index 0000000..c798b36 --- /dev/null +++ b/Webzine.Entity/Fixtures/CommentaireFactory.cs @@ -0,0 +1,13 @@ +// +// Copyright (c) PlaceholderCompany. All rights reserved. +// + +using Bogus; + +namespace Webzine.Entity.Fixtures +{ + public class CommentaireFactory + { + + } +} diff --git a/Webzine.Entity/Fixtures/SeedDataLocal.cs b/Webzine.Entity/Fixtures/SeedDataLocal.cs index bd2479e..9b69c5f 100644 --- a/Webzine.Entity/Fixtures/SeedDataLocal.cs +++ b/Webzine.Entity/Fixtures/SeedDataLocal.cs @@ -1,6 +1,153 @@ -namespace Webzine.Entity.Fixtures; +// +// Copyright (c) PlaceholderCompany. All rights reserved. +// -public class SeedDataLocal +namespace Webzine.Entity.Fixtures { + using Bogus; + public class SeedDataLocal + { + public SeedDataLocal() + { + } + + /// + /// Generer une liste d'artiste. + /// + /// Nombre d'artiste. + /// Liste d'artiste. + public static List GenererListeArtiste(int nombre) + { + Faker artistes = new Faker("fr") + .RuleFor(a => a.Nom, f => f.Person.FullName) + .RuleFor(a => a.Biographie, f => f.Lorem.Paragraph(2)); + + return artistes.Generate(nombre); + } + + /// + /// Generer une liste de titre. + /// + /// Nombre de titre à créer. + /// Liste d'artiste. + /// Liste de style. + /// Liste de titre. + public static List GenererListeTitre( + int count, + List artistes, + List