internal void SetModel(TestResultModel model) { Model = model; }
public void Initialize(TestScenario scenario) { lock (this) { if (this.IsRunning == false) { this.IsRunning = true; _result = new TestResultModel(); _result.Scenario = scenario; _scenario = scenario as WebTestScenario; scenario.PauseStateManager(); scenario.SetDirty(false); var wtrvm = _container.Resolve<WebTestCurrentResultViewModel>(); wtrvm.SetModel(_result); var view = _container.Resolve<WebTestResultView>(); view.DataContext = _result; wtrvm.SetView(view); _workspace.Documents.Add(wtrvm); _workspace.ActiveDocument = wtrvm; Task.Factory.StartNew(() => { this.BackRun(); this.WorkComplete(); }); } } }
private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { resultModel = DataContext as TestResultModel; }
public void CleanUp() { if (this.Driver != null) { this.Driver.Quit(); this.Driver = null; } //Set the variables back to null this._result = null; this._scenario = null; }