Fix some errors in test data

This commit is contained in:
Jonathan Bourdon
2024-08-04 04:45:53 -04:00
parent 7ec668a822
commit 7c5f3d72ef

View File

@@ -41,8 +41,8 @@ internal class TestDataSeeder(
foreach (var creator in _creators)
{
var creatorUser = await CreateUserAsync(
creator.Name,
creator.StoredDataUrls.ProfilePictureUrl,
creator.Name,
creator.StoredDataUrls.ProfilePictureUrl,
Roles.Creator);
creator.Id = creatorUser.Id;
@@ -54,7 +54,7 @@ internal class TestDataSeeder(
foreach (var content in contents)
{
var messages = GenerateMessages(content, 10);
var parentMessages = messages.Where((_, index) => index % 2 == 0).ToList();
foreach (var parentMessage in parentMessages)
{
@@ -207,7 +207,7 @@ internal class TestDataSeeder(
private readonly static Creator ArpsCreator = new()
{
Name = "Arps",
Name = "arps",
About =
new()
{
@@ -234,7 +234,7 @@ internal class TestDataSeeder(
private readonly static Creator ChloeCreator = new()
{
Name = "chloeprofile",
Name = "chloe",
About = new()
{
Title = "Page officielle",
@@ -242,17 +242,13 @@ internal class TestDataSeeder(
},
ProfileColors = new()
{
BannerTop = "#231F20",
BannerBottom = "#272526",
Accent = "#231F20",
Menu = "#231F20",
BannerTop = "#231F20", BannerBottom = "#272526", Accent = "#231F20", Menu = "#231F20",
},
SocialNetworks =
new()
{
FacebookUrl = "https://www.facebook.com/chloegestionmedias",
InstagramUrl = "https://www.instagram.com/chloe.photo_gms",
},
StoredDataUrls = new()
{
@@ -260,7 +256,7 @@ internal class TestDataSeeder(
ProfilePictureUrl = "/images/usersmedia/chloebeaugrand/profilepictures/profileChloeBeaugrand01.png"
}
};
private readonly Creator[] _creators =
[
HutopyCreator,