using Microsoft.EntityFrameworkCore;

using RolemasterDb.App.Data;

namespace RolemasterDb.ImportTool.Tests;

internal sealed class TestRolemasterDbContextFactory(DbContextOptions<RolemasterDbContext> options) : IDbContextFactory<RolemasterDbContext>
{
    public RolemasterDbContext CreateDbContext() => new(options);

    public Task<RolemasterDbContext> CreateDbContextAsync(CancellationToken cancellationToken = default) =>
        Task.FromResult(CreateDbContext());
}
