Test code refactoring. Minor CI change.
This commit is contained in:
15
JSMR.Tests/Ingestion/IngestionTestsBase.cs
Normal file
15
JSMR.Tests/Ingestion/IngestionTestsBase.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user