private IEnumerator<IResult> GetTestsWithAny() { if (UILib.IsDesignMode()) yield break; GetTestsRequest getTestsRequest = new GetTestsRequest(true, false); yield return getTestsRequest; if (getTestsRequest.Error != null) { yield return new HandleExceptionResult(getTestsRequest.Error); } Instance.TestsWithAny = getTestsRequest.Result.Clone(); }
public IEnumerable<IResult> LoadViewTests() { if (this.HasLoadedTests) yield break; GetTestsRequest getTestsRequest = new GetTestsRequest(false, true); yield return getTestsRequest; if (getTestsRequest.Error != null) { yield return new HandleExceptionResult(getTestsRequest.Error); } this.Tests = getTestsRequest.Result; TestsView.TestGrid.Enable(defaultFocusDelegate); TestsView.TestData.Disable(); NotifyOfPropertyChange(() => AssistantTestMode); this.HasLoadedTests = true; }