Archetektur angefangen
This commit is contained in:
29
ConsoleClient/Program.cs
Normal file
29
ConsoleClient/Program.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user