Auftraggeberservice und Projektservice hinzugefügt

This commit is contained in:
2023-04-12 18:22:14 +02:00
parent 1c3e3c876b
commit b100eca490
37 changed files with 400 additions and 43 deletions

View File

@@ -0,0 +1,43 @@
using SewerStammGen.DAL.Services;
using SewerStammGen.Shared.Contracts;
using SewerStammGen.Shared.Domain;
using SewerStammGen.Shared.Enum;
using System.Diagnostics;
namespace SewerStammGen.ConsoleApp
{
internal class Program
{
static void Main(string[] args)
{
IProjektDataService projektService = new ProjektDataService();
Projekt neuesProjekt = new Projekt()
{
Erstelldatum = "test",
Projektname = "test",
Kodierungssystem = EKodierungssystem.EN13508_2_2011,
ExportType = EExportType.XML2006,
Ort = "test",
Strasse = "test",
};
//test(neuesProjekt, projektService);
readtest(projektService);
Console.WriteLine("Hello, World!");
}
private static async void readtest(IProjektDataService projektService)
{
var m = await projektService.GetAll();
Debugger.Break();
}
private static async void test(Projekt neuesProjekt, IProjektDataService projektService)
{
var m = await projektService.Create(neuesProjekt);
Console.WriteLine(m.Id);
}
}
}

View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\SewerStammGen.DAL\SewerStammGen.DAL.csproj" />
<ProjectReference Include="..\Shared\SewerStammGen.Shared.csproj" />
</ItemGroup>
</Project>