public void CanCloseApplication() { ServiceHelper.GetUIHierarchyService(ServiceProvider).SelectedHierarchy = null; ConfigurationApplicationNode node = new ConfigurationApplicationNode(); IConfigurationUIHierarchy hierarchy = new ConfigurationUIHierarchy(node, ServiceProvider); HiearchyService.AddHierarchy(hierarchy); UIService.SetUIDirty(hierarchy); cmd.Execute(node); Assert.AreEqual(HiearchyService.SelectedHierarchy, hierarchy); Assert.IsTrue(UIService.IsDirty(hierarchy)); Assert.AreEqual(0, ErrorLogService.ConfigurationErrorCount); Assert.IsNull(HiearchyService.GetHierarchy(hierarchy.Id)); }
protected override void InitializeCore() { HiearchyService.AddHierarchy(Hierarchy); manager = new ConfigurationSourceConfigurationDesignManager(); }
protected override void InitializeCore() { base.InitializeCore(); HiearchyService.AddHierarchy(Hierarchy); }