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.
 
 
 
 
 

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 MongoContentRepositoryTests(MongoFixture fixture) : ContentRepositoryTests
{
protected override async Task<IContentRepository> CreateSutAsync()
{
var sut =
new MongoContentRepository(
fixture.Database,
AppProvider,
string.Empty,
Options.Create(new ContentsOptions()),
A.Fake<ILogger<MongoContentRepository>>());
await sut.InitializeAsync(default);
return sut;
}
}