public void SetUp() { var registry = new Registry(); shell = new Shell(); shell.Register(registry); container = new Container(registry); }
private void setupShell() { var shell = new Shell(); shell.Register(this); var window = new MainWindow(shell); For <Window>().Use(window); ForSingletonOf <IScreenConductor>().Use <ScreenConductor>().OnCreation( (context, presenter) => { var w = context.GetInstance <Window>().As <MainWindow>(); w.CanClose = presenter.CanClose; }); }