/// <summary> /// The set tree model. /// </summary> /// <param name="testSuiteModel"> /// The feature model. /// </param> private void SetTreeModel(ScriptExplorerModel testSuiteModel) { if (testSuiteModel != null) { this.ColumnTreeList.TreeModel = new TreeModel { TestSuiteList = testSuiteModel.ScriptExplorerList }; } }
/// <summary> /// The destroy. /// </summary> /// <summary> /// The initialize. /// </summary> /// <param name="testConfiguration"> /// The test configuration. /// </param> public void LoadExplorer(TestConfiguration testConfiguration) { this.TestConfig = null; this.TestConfig = testConfiguration; this.ScriptExplorerModel = new ScriptExplorerModel(); this.LoadScriptExplorerModel(this.ScriptExplorerModel, this.TestConfig); }
/// <summary> /// The load test suite model. /// </summary> /// <param name="scriptExplorerModel"> /// The test suite model. /// </param> /// <param name="testConfiguration"> /// The test config. /// </param> private void LoadScriptExplorerModel(ScriptExplorerModel scriptExplorerModel, TestConfiguration testConfiguration) { Log.Enter(this, MethodBase.GetCurrentMethod().Name); scriptExplorerModel.ScriptExplorerList.Clear(); foreach (var testObject in testConfiguration.AvailableTestObjects) { var childFeatur = this.AddNewScriptExplorerItem(null, testObject, testObject.IsActive); this.ScriptExplorerModel.ScriptExplorerList.Add(childFeatur); } // Feature List headers scriptExplorerModel.ColumnHeader1 = "Method"; scriptExplorerModel.ColumnHeader2 = "Parameter"; scriptExplorerModel.ColumnHeader3 = "Description"; this.RaisePropertyChanged("FeatureModel"); }
/// <summary> /// The destroy configurator. /// </summary> public void UnloadExplorer() { this.TestConfig = null; this.ScriptExplorerModel = null; }