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.
46 lines
1.7 KiB
46 lines
1.7 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Squidex.ClientLibrary;
|
|
|
|
namespace TestSuite.Fixtures;
|
|
|
|
public sealed class ClientCloudFixture
|
|
{
|
|
public ISquidexClient CloudClient { get; private set; }
|
|
|
|
public ISquidexClient CDNClient { get; private set; }
|
|
|
|
public ClientCloudFixture()
|
|
{
|
|
CloudClient =
|
|
new ServiceCollection()
|
|
.AddSquidexClient(options =>
|
|
{
|
|
options.AppName = "squidex-website";
|
|
options.ClientId = "squidex-website:reader";
|
|
options.ClientSecret = "yy9x4dcxsnp1s34r2z19t88wedbzxn1tfq7uzmoxf60x";
|
|
options.ReadResponseAsString = true;
|
|
})
|
|
.BuildServiceProvider()
|
|
.GetRequiredService<ISquidexClient>();
|
|
|
|
CDNClient =
|
|
new ServiceCollection()
|
|
.AddSquidexClient(options =>
|
|
{
|
|
options.AppName = "squidex-website";
|
|
options.AssetCDN = "https://assets.squidex.io";
|
|
options.ClientId = "squidex-website:reader";
|
|
options.ClientSecret = "yy9x4dcxsnp1s34r2z19t88wedbzxn1tfq7uzmoxf60x";
|
|
options.ContentCDN = "https://contents.squidex.io";
|
|
})
|
|
.BuildServiceProvider()
|
|
.GetRequiredService<ISquidexClient>();
|
|
}
|
|
}
|
|
|