public List <SuiteEntry> UpdateTestCaseAndChildSuiteEntryOrder()
        {
            string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;
            int    suiteId     = this._getTestSuiteId();

            // Get a testplan client instance
            VssConnection      connection     = Context.Connection;
            TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>();

            List <SuiteEntry> childSuites;

            Context.TryGetValue <List <SuiteEntry> >("$childSuiteEntries", out childSuites);

            List <SuiteEntry> testCases;

            Context.TryGetValue <List <SuiteEntry> >("$testCaseEntries", out testCases);

            if (childSuites != null && childSuites.Count >= 2 && testCases != null && testCases.Count >= 2)
            {
                SuiteEntry testCase2   = testCases[0];
                SuiteEntry childSuite2 = childSuites[0];

                SuiteEntryUpdateParams suiteEntry1 = new SuiteEntryUpdateParams()
                {
                    Id             = testCase2.Id,
                    SuiteEntryType = SuiteEntryTypes.TestCase,
                    SequenceNumber = 0
                };

                SuiteEntryUpdateParams suiteEntry2 = new SuiteEntryUpdateParams()
                {
                    Id             = childSuite2.Id,
                    SuiteEntryType = SuiteEntryTypes.Suite,
                    SequenceNumber = 0
                };

                List <SuiteEntryUpdateParams> updatedEntries = new List <SuiteEntryUpdateParams>()
                {
                    suiteEntry1,
                    suiteEntry2
                };



                //update suite entries
                List <SuiteEntry> suiteEntries = testPlanClient.ReorderSuiteEntriesAsync(updatedEntries, projectName, suiteId).Result;



                foreach (SuiteEntry suiteEntry in suiteEntries)
                {
                    Context.Log("{0} {1}", suiteEntry.Id.ToString().PadLeft(6), suiteEntry.SequenceNumber);
                }
                return(suiteEntries);
            }

            return(null);
        }