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.
 
 
 
 
 

24 lines
1017 B

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Microsoft.EntityFrameworkCore;
using Squidex.Domain.Apps.Entities.Contents;
using Squidex.Domain.Apps.Entities.Contents.Repositories;
using Squidex.EntityFramework.TestHelpers;
using Squidex.Shared;
namespace Squidex.EntityFramework.Domain.Contents;
public abstract class EFContentRepositoryTests<TContext>(ISqlFixture<TContext> fixture) : ContentRepositoryTests where TContext : DbContext
{
protected override Task<IContentRepository> CreateSutAsync()
{
var sut = new EFContentRepository<TContext>(fixture.DbContextFactory, AppProvider, fixture.Dialect);
return Task.FromResult<IContentRepository>(sut);
}
}