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.
34 lines
1.2 KiB
34 lines
1.2 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using Squidex.ClientLibrary;
|
|
|
|
namespace LoadTest
|
|
{
|
|
public static class TestClient
|
|
{
|
|
public const string ServerUrl = "http://localhost:5000";
|
|
|
|
public const string ClientId = "root";
|
|
public const string ClientSecret = "xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0=";
|
|
|
|
public const string TestAppName = "integration-tests";
|
|
public const string TestSchemaName = "numbers";
|
|
public const string TestSchemaField = "value";
|
|
|
|
public static readonly SquidexClientManager ClientManager =
|
|
new SquidexClientManager("http://localhost:5000", TestAppName, ClientId, ClientSecret)
|
|
{
|
|
ReadResponseAsString = true
|
|
};
|
|
|
|
public static SquidexClient<TestEntity, TestEntityData> Build()
|
|
{
|
|
return ClientManager.GetClient<TestEntity, TestEntityData>(TestSchemaName);
|
|
}
|
|
}
|
|
}
|
|
|