using JSMR.Infrastructure.Data;
using JSMR.Tests.Fixtures;

namespace JSMR.Tests.Ingestion;

public abstract class IngestionTestsBase(MariaDbContainerFixture container)
{
    protected async Task<AppDbContext> GetAppDbContextAsync()
    {
        return await MariaDbClone.CloneFromTemplateAsync(
            container.RootConnectionString,
            container.TemplateDbName,
            seed: VoiceWorkIngestionSeedData.SeedAsync);
    }
}