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.
35 lines
1.3 KiB
35 lines
1.3 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.Extensions.Options;
|
|
using Squidex.Domain.Apps.Entities.Contents;
|
|
using Squidex.Domain.Apps.Entities.Contents.Repositories;
|
|
using Squidex.Domain.Apps.Entities.MongoDb.Contents;
|
|
using Squidex.MongoDb.TestHelpers;
|
|
using Squidex.Shared;
|
|
|
|
namespace Squidex.MongoDb.Domain.Contents;
|
|
|
|
[Trait("Category", "TestContainer")]
|
|
[Collection(MongoFixtureCollection.Name)]
|
|
public class MongoContentRepositoryDedicatedTests(MongoFixture fixture) : ContentRepositoryTests
|
|
{
|
|
protected override async Task<IContentRepository> CreateSutAsync()
|
|
{
|
|
var sut =
|
|
new MongoContentRepository(
|
|
fixture.Database,
|
|
AppProvider,
|
|
string.Empty,
|
|
Options.Create(new ContentsOptions { OptimizeForSelfHosting = true }),
|
|
A.Fake<ILogger<MongoContentRepository>>());
|
|
|
|
await sut.InitializeAsync(default);
|
|
return sut;
|
|
}
|
|
}
|
|
|