Пример #1
0
        static void Main(string[] args)
        {
            using (var unitOfWork = new UnitOfWork(new TamaContext()))
            {
                var kernel = new StandardKernel(new Bindings());
                kernel.Load(Assembly.GetExecutingAssembly());
                var acties     = kernel.Get <List <IInstructies> >();
                var spelregels = kernel.Get <List <ISpelregels> >();
                List <Tamagotchi> tamagotchis = new List <Tamagotchi>(unitOfWork.Tamagotchis.GetAll());

                Model.Model model      = new Model.Model(acties, tamagotchis, spelregels, unitOfWork);
                View.View   view       = new View.View();
                Controller  controller = new Controller(model, view);

                //Tamagotchi tamagotchi = new Tamagotchi("steven", 0, 0, 0, 0, DateTime.Now);
                //model.addTamagotchi(tamagotchi);

                controller.Start();
                unitOfWork.Complete();
            }
        }
Пример #2
0
 public Controller(Model.Model model, View.View view)
 {
     this.model = model;
     this.view  = view;
 }