using AyCode.Core.Tests;
using AyCode.Database.DataLayers;
using AyCode.Database.DbContexts;

namespace AyCode.Database.Tests;

public abstract class AcDatabaseTestModelBase<TDal, TDbContext> : TestModelBase where TDal : IAcDalBase<TDbContext> where TDbContext : AcDbContextBase
{
    protected readonly TDal Dal = PooledDal.CreateDal<TDal>();
}

public abstract class AcDatabaseTestModelBase<TDbContext> : TestModelBase where TDbContext : AcDbContextBase
{
    protected readonly TDbContext Context = Activator.CreateInstance<TDbContext>();
}