public void DeletePlanById_2()
        {
            string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;

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

            TestPlanWebApi.TestPlan newplan2;
            Context.TryGetValue <TestPlanWebApi.TestPlan>("$newPlan2", out newplan2);
            if (newplan2 != null)
            {
                int id2 = newplan2.Id;


                // Delete Test plan
                testPlanClient.DeleteTestPlanAsync(projectName, id2).SyncResult();
            }
        }