// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Entities.Contents; using Squidex.EntityFramework.TestHelpers; using Squidex.Infrastructure; using Squidex.Infrastructure.States; using Squidex.Shared; namespace Squidex.EntityFramework.Domain.Contents; public abstract class EFContentRepositorySnapshotTests(ISqlContentFixture fixture) : ContentSnapshotStoreTests where TContext : DbContext, IDbContextWithDialect where TContentContext : ContentDbContext { protected override Task> CreateSutAsync() { var sut = new EFContentRepository( fixture.DbContextFactory, fixture.DbContextNamedFactory, Context.AppProvider, Options.Create(new ContentsOptions())); return Task.FromResult>(sut); } }