Compare commits

..

2 Commits

8 changed files with 23 additions and 7 deletions
+1 -1
View File
@@ -3,4 +3,4 @@ bin/
*.user *.user
.vs .vs
.idea .idea
Tests/Resources/Create.sql Tests/Resources/Sql/Create.sql
+2 -2
View File
@@ -13,8 +13,8 @@ namespace Tests {
public async Task SetupDatabase() { public async Task SetupDatabase() {
AppDbContext.ConnectionStringOverride = $"Data Source=ElwigTestDB; Mode=Memory; Foreign Keys=True; Cache=Shared"; AppDbContext.ConnectionStringOverride = $"Data Source=ElwigTestDB; Mode=Memory; Foreign Keys=True; Cache=Shared";
Connection = await AppDbContext.ConnectAsync(); Connection = await AppDbContext.ConnectAsync();
await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.Create.sql"); await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.Sql.Create.sql");
await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.Insert.sql"); await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.Sql.Insert.sql");
} }
[OneTimeSetUp] [OneTimeSetUp]
+18 -2
View File
@@ -15,13 +15,13 @@ namespace Tests.HelperTests {
[OneTimeSetUp] [OneTimeSetUp]
public async Task SetupDatabase() { public async Task SetupDatabase() {
Connection = await AppDbContext.ConnectAsync(); Connection = await AppDbContext.ConnectAsync();
await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.BillingInsert.sql"); await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.Sql.BillingInsert.sql");
} }
[OneTimeTearDown] [OneTimeTearDown]
public async Task TeardownDatabase() { public async Task TeardownDatabase() {
if (Connection == null) return; if (Connection == null) return;
await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.BillingDelete.sql"); await AppDbContext.ExecuteEmbeddedScript(Connection, Assembly.GetExecutingAssembly(), "Tests.Resources.Sql.BillingDelete.sql");
await Connection.DisposeAsync(); await Connection.DisposeAsync();
Connection = null; Connection = null;
} }
@@ -143,82 +143,98 @@ namespace Tests.HelperTests {
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_02_SimpleNotStrictAreaComs() { public async Task Test_02_SimpleNotStrictAreaComs() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_03_SimpleNotStrictAreaComs_HonorGebunden() { public async Task Test_03_SimpleNotStrictAreaComs_HonorGebunden() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_04_ComplexNotStrictAreaComs() { public async Task Test_04_ComplexNotStrictAreaComs() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_05_ComplexNotStrictAreaComs_HonorGebunden() { public async Task Test_05_ComplexNotStrictAreaComs_HonorGebunden() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_06_StrictAreaComs_NoFillLower_NotAllowed() { public async Task Test_06_StrictAreaComs_NoFillLower_NotAllowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_07_StrictAreaComs_NoFillLower_Allowed() { public async Task Test_07_StrictAreaComs_NoFillLower_Allowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_08_StrictAreaComs_NoFillLower_Allowed_AvoidUnderDeliveries() { public async Task Test_08_StrictAreaComs_NoFillLower_Allowed_AvoidUnderDeliveries() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_09_StrictAreaComs_FillLowerUntilObligation_NotAllowed() { public async Task Test_09_StrictAreaComs_FillLowerUntilObligation_NotAllowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_10_StrictAreaComs_FillLowerUntilObligation_Allowed() { public async Task Test_10_StrictAreaComs_FillLowerUntilObligation_Allowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_11_StrictAreaComs_FillLowerUntilObligation_Allowed_AvoidUnderDeliveries() { public async Task Test_11_StrictAreaComs_FillLowerUntilObligation_Allowed_AvoidUnderDeliveries() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_12_StrictAreaComs_FillLowerUntilObligation_NotAllowed() { public async Task Test_12_StrictAreaComs_FillLowerUntilObligation_NotAllowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_13_StrictAreaComs_FillLowerUntilObligation_Allowed() { public async Task Test_13_StrictAreaComs_FillLowerUntilObligation_Allowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_14_StrictAreaComs_FillLowerUntilObligation_Allowed_AvoidUnderDeliveries() { public async Task Test_14_StrictAreaComs_FillLowerUntilObligation_Allowed_AvoidUnderDeliveries() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_15_StrictAreaComs_FillLowerUntilRight_NotAllowed() { public async Task Test_15_StrictAreaComs_FillLowerUntilRight_NotAllowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_16_StrictAreaComs_FillLowerUntilRight_Allowed() { public async Task Test_16_StrictAreaComs_FillLowerUntilRight_Allowed() {
// TODO // TODO
} }
[Test] [Test]
[Ignore("Not implemented yet")]
public async Task Test_17_StrictAreaComs_FillLowerUntilRight_Allowed_AvoidUnderDeliveries() { public async Task Test_17_StrictAreaComs_FillLowerUntilRight_Allowed_AvoidUnderDeliveries() {
// TODO // TODO
} }
+1 -1
View File
@@ -10,7 +10,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Resources\*.sql" /> <EmbeddedResource Include="Resources\Sql\*.sql" />
</ItemGroup> </ItemGroup>
<Target Name="FetchResources" BeforeTargets="BeforeBuild"> <Target Name="FetchResources" BeforeTargets="BeforeBuild">
+1 -1
View File
@@ -1 +1 @@
curl -s -L "https://www.necronda.net/elwig/files/create.sql?v=15" -u "elwig:ganzGeheim123!" -o "Resources\Create.sql" curl -s -L "https://www.necronda.net/elwig/files/create.sql?v=15" -u "elwig:ganzGeheim123!" -o "Resources\Sql\Create.sql"