Commande dotnet format

This commit is contained in:
josephine.vetu
2026-03-28 10:09:18 +01:00
committed by b.nodon
parent 18075a9792
commit fe2a339fc1
51 changed files with 265 additions and 228 deletions

View File

@@ -1,17 +1,18 @@
using Bogus;
using Faker;
using System;
using System.Collections.Generic;
using Webzine.Entity;
namespace Webzine.Repository.Fake
namespace Webzine.Repository.Fake
{
using System;
using System.Collections.Generic;
using Bogus;
using Faker;
using Webzine.Entity;
/// <summary>
/// Classe de fabrique pour générer des données factices (fake data) pour les entités Artiste et Titre.
/// </summary>
public static class FakeDataFactory
{
//https://cdn-images.dzcdn.net/images/cover/311bba0fc112d15f72c8b5a65f0456c1/1900x1900-000000-80-0-0.jpg",
// https://cdn-images.dzcdn.net/images/cover/311bba0fc112d15f72c8b5a65f0456c1/1900x1900-000000-80-0-0.jpg",
/// <summary>
/// Génère une liste d'artistes avec des données factices, incluant des titres associés à chaque artiste.
/// </summary>
@@ -28,7 +29,7 @@ namespace Webzine.Repository.Fake
IdArtiste = i,
Nom = Name.FullName(),
Biographie = Lorem.Paragraph(),
Titres = new List<Titre>()
Titres = new List<Titre>(),
});
}
@@ -64,7 +65,7 @@ namespace Webzine.Repository.Fake
NbLectures = RandomNumber.Next(0, 500),
NbLikes = RandomNumber.Next(0, 200),
Album = Lorem.Sentence(2),
Commentaires = new List<Commentaire>()
Commentaires = new List<Commentaire>(),
};
titres.Add(titre);
@@ -74,4 +75,4 @@ namespace Webzine.Repository.Fake
return titres;
}
}
}
}