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