diff --git a/test/Infrastructure.IntegrationTest/DatabaseDataAttribute.cs b/test/Infrastructure.IntegrationTest/DatabaseDataAttribute.cs
index 5171cc0691..1a20166375 100644
--- a/test/Infrastructure.IntegrationTest/DatabaseDataAttribute.cs
+++ b/test/Infrastructure.IntegrationTest/DatabaseDataAttribute.cs
@@ -35,14 +35,14 @@ public class DatabaseDataAttribute : DataAttribute
TheoryDataRowBase theory;
- if (!isEnabled)
+ if (isEnabled)
{
- theory = new TheoryDataRow()
- .WithSkip("Not Enabled");
+ theory = new ServiceTheoryDataRow(testMethod, disposalTracker, customizationContext);
}
else
{
- theory = new ServiceTheoryDataRow(testMethod, disposalTracker, customizationContext);
+ theory = new TheoryDataRow()
+ .WithSkip("Not Enabled");
}
theory
diff --git a/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj b/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj
index 576c413135..92d9f5fa9a 100644
--- a/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj
+++ b/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj
@@ -13,8 +13,8 @@
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all