This commit is contained in:
Eugenio Chiodo
2022-02-15 00:08:41 +01:00
parent 5cba76554a
commit e64bce3171
22 changed files with 1152 additions and 93 deletions

View File

@ -31,4 +31,17 @@ public static class Faker
{
return Users[Random.Shared.Next(0, Users.Count)];
}
public static BoostingUser GetRandomBoostingUser()
{
var user = Users[Random.Shared.Next(0, Users.Count)];
return new()
{
UserId = user.UserId,
DisplayName = user.DisplayName,
UserName = user.UserName,
PictureUrl = user.PictureUrl,
ProfileUrl = user.ProfileUrl
};
}
}