protected override void LoadChildren() { foreach (TestSuite current in TfsRepository.getTestSuites(this._testPlan)) { base.Children.Add(new TestSuiteViewModel(current)); } }
protected override void LoadChildren() { IOrderedEnumerable <TestSuite> testSuites = TfsRepository.getTestSuites(this._testSuite); if (testSuites != null) { foreach (TestSuite testSuite in TfsRepository.getTestSuites(this._testSuite)) { TestSuiteViewModel testSuiteViewModel = new TestSuiteViewModel(testSuite); base.Children.Add(testSuiteViewModel); this.ChildrenTestSuites.Add(testSuiteViewModel); } } IOrderedEnumerable <TestCase> testCases = TfsRepository.getTestCases(this._testSuite); if (testCases != null) { foreach (TestCase testCase in testCases) { TestCaseViewModel testCaseViewModel = new TestCaseViewModel(testCase); base.Children.Add(testCaseViewModel); this.ChildrenTestCases.Add(testCaseViewModel); } } }
protected override void LoadChildren(byte lazyLoadLevels) { IOrderedEnumerable <TestSuite> testSuites = TfsRepository.getTestSuites(this._testSuite); if (testSuites != null) { foreach (TestSuite current in TfsRepository.getTestSuites(this._testSuite)) { base.Children.Add(new TestSuiteViewModel(current, this, lazyLoadLevels)); } } }