Beispiel #1
0
 public override void FixtureSetup()
 {
     base.FixtureSetup();
     Cache.ProjectId.Path = Path.Combine(Path.GetTempPath(), Cache.ProjectId.Name, Cache.ProjectId.Name + @".junk");
     FwRegistrySettings.Init();
     m_application = new MockFwXApp(new MockFwManager {
         Cache = Cache
     }, null, null);
     m_configFilePath = Path.Combine(FwDirectoryFinder.CodeDirectory, m_application.DefaultConfigurationPathname);
     m_window         = new MockFwXWindow(m_application, m_configFilePath);
     m_window.Init(Cache);             // initializes Mediator values
     m_mediator = m_window.Mediator;
     m_mediator.AddColleague(new StubContentControlProvider());
     m_window.LoadUI(m_configFilePath);             // actually loads UI here; needed for non-null stylesheet
     LayoutCache.InitializePartInventories(Cache.ProjectId.Name, m_application, Cache.ProjectId.Path);
 }