public void SetUp() { ProjectHistory history = DataMother.HistoryPointingToMathProject(); new ProjectPersistor().SaveHistory(history); Bootstrapper.BootstrapShell(false); shell = (Shell)ObjectFactory.GetInstance <IApplicationShell>(); ObjectFactory.Configure(x => { x.For <Window>().Use(() => { window = new Window(); window.Show(); return(window); }); }); }