using Admin.NET.Plugin.AiDOP.Infrastructure; using SqlSugar; using Xunit; namespace Admin.NET.Plugin.AiDOP.Tests; public class AidopTenantInitContractTests { [Fact] public void KpiSeed_KeepsExistingCallersCompatible_AndSupportsSafeTenantInitialization() { var method = typeof(AidopKpiMasterSeed).GetMethod( nameof(AidopKpiMasterSeed.EnsureSeed), [typeof(ISqlSugarClient), typeof(long), typeof(bool)]); Assert.NotNull(method); var includeDemoValues = method!.GetParameters()[2]; Assert.True(includeDemoValues.IsOptional); Assert.Equal(true, includeDemoValues.DefaultValue); } [Fact] public void TenantInitialization_UsesDedicatedS8SceneTemplate() { Assert.True(AidopTenantInitService.S8SceneTemplateTenantId > 0); Assert.NotEqual( AidopTenantInitService.KpiTemplateTenantId, AidopTenantInitService.S8SceneTemplateTenantId); } }