Archetektur angefangen

This commit is contained in:
HuskyTeufel
2021-01-31 22:15:43 +01:00
parent 9f8e167ce3
commit 7a733b92d2
44 changed files with 564 additions and 67 deletions

29
ConsoleClient/Program.cs Normal file
View File

@@ -0,0 +1,29 @@

using KanSan.CrossCutting.DataClasses;
using KanSan.DependencyInjection.Mappings;
using KundenManagement.Contract;
using Ninject;
using System;
using System.Collections.Generic;
namespace ConsoleClient
{
class Program
{
static void Main(string[] args)
{
StandardKernel kernel = new StandardKernel();
new KernelInitializer().Initialize(kernel);
IKundeManager manager = kernel.Get<IKundeManager>();
List<Kunde> kunden = manager.GetAllKunden();
kunden.ForEach(a => Console.WriteLine(a.Vorname + " " + a.ID));
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}