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));
        }
コード例 #2
0
 protected override void InitializeCore()
 {
     HiearchyService.AddHierarchy(Hierarchy);
     manager = new ConfigurationSourceConfigurationDesignManager();
 }
コード例 #3
0
 protected override void InitializeCore()
 {
     base.InitializeCore();
     HiearchyService.AddHierarchy(Hierarchy);
 }