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.
27 lines
1.1 KiB
27 lines
1.1 KiB
// ==========================================================================
|
|
// 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.Repositories;
|
|
using Squidex.Domain.Apps.Entities.Contents.Text;
|
|
using Squidex.Domain.Apps.Entities.Contents.Text.State;
|
|
using Squidex.EntityFramework.TestHelpers;
|
|
using Squidex.Infrastructure;
|
|
using Squidex.Shared;
|
|
|
|
namespace Squidex.EntityFramework.Domain.Contents.Text;
|
|
|
|
public abstract class EFTextIndexerStateTests<TContext>(ISqlFixture<TContext> fixture) : TextIndexerStateTests
|
|
where TContext : DbContext, IDbContextWithDialect
|
|
{
|
|
protected override Task<ITextIndexerState> CreateSutAsync(IContentRepository contentRepository)
|
|
{
|
|
var sut = new EFTextIndexerState<TContext>(fixture.DbContextFactory, contentRepository);
|
|
|
|
return Task.FromResult<ITextIndexerState>(sut);
|
|
}
|
|
}
|
|
|