Headless CMS and Content Managment Hub
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.8 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 ISquidexClientManager ClientManager { get; private set; }
public ISquidexClientManager CDNClientManager { get; private set; }
public ClientCloudFixture()
{
ClientManager =
new ServiceCollection()
.AddSquidexClient(options =>
{
options.AppName = "squidex-website";
options.ClientId = "squidex-website:reader";
options.ClientSecret = "yy9x4dcxsnp1s34r2z19t88wedbzxn1tfq7uzmoxf60x";
options.ReadResponseAsString = true;
})
.BuildServiceProvider()
.GetRequiredService<ISquidexClientManager>();
CDNClientManager =
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<ISquidexClientManager>();
}
}