30 lines
709 B
C#
30 lines
709 B
C#
|
|
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();
|
|
}
|
|
}
|
|
}
|