using Eis.Domain.Migration;
using Eis.Infrastructure.Migration;

namespace Eis.Infrastructure.Tests.Migration;

public sealed class MigrationFeatureCatalogTests
{
    [Fact]
    public void ReportsCompletedNativeFeatureAreas()
    {
        var features = MigrationFeatureCatalog.Current(authenticationNative: true, candidateNative: true);

        Assert.True(features.Single(item => item.Area == FeatureArea.Authentication).Native);
        Assert.True(features.Single(item => item.Area == FeatureArea.Candidate).Native);
        Assert.True(features.Single(item => item.Area == FeatureArea.Administration).Native);
        Assert.True(features.Single(item => item.Area == FeatureArea.Admission).Native);
        Assert.True(features.Single(item => item.Area == FeatureArea.Documents).Native);
        Assert.True(features.Single(item => item.Area == FeatureArea.Excel).Native);
        Assert.True(features.Single(item => item.Area == FeatureArea.Caching).Native);
    }
}
