Auftraggeberservice und Projektservice hinzugefügt
This commit is contained in:
43
SewerStammGen.ConsoleApp/Program.cs
Normal file
43
SewerStammGen.ConsoleApp/Program.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
15
SewerStammGen.ConsoleApp/SewerStammGen.ConsoleApp.csproj
Normal file
15
SewerStammGen.ConsoleApp/SewerStammGen.ConsoleApp.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user