mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
995 B
31 lines
995 B
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System.Threading.Tasks;
|
|
using LoadTest.Model;
|
|
using Squidex.ClientLibrary.Management;
|
|
using Xunit;
|
|
|
|
namespace LoadTest
|
|
{
|
|
public sealed class TestUtils
|
|
{
|
|
[Fact]
|
|
public async Task GenerateAppManyContributorsAsync()
|
|
{
|
|
var client = TestClient.ClientManager.CreateAppsClient();
|
|
|
|
for (var i = 0; i < 200; i++)
|
|
{
|
|
await client.PostContributorAsync("test", new AssignContributorDto
|
|
{
|
|
ContributorId = $"hello{i}@squidex.io", Invite = true, Role = "Editor"
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|