public List <TestPlanWebApi.TestPlan> GetActiveTestPlansFilteredByOwner()
        {
            string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;

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


            // Get test plans
            List <TestPlanWebApi.TestPlan> plans = testPlanClient.GetTestPlansAsync(projectName, includePlanDetails: true, filterActivePlans: true, owner: "0fdbdad8-6afb-6149-9af9-c0a216137d1d").Result;


            foreach (TestPlanWebApi.TestPlan plan in plans)
            {
                Context.Log("{0} {1}", plan.Id, plan.Name);
            }
            return(plans);
        }
        public List <TestPlanWebApi.TestPlan> GetTestPlans()
        {
            string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;

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


            // Get test plans
            List <TestPlanWebApi.TestPlan> plans = testPlanClient.GetTestPlansAsync(projectName).Result;


            foreach (TestPlanWebApi.TestPlan plan in plans)
            {
                Context.Log("{0} {1}", plan.Id, plan.Name);
            }
            return(plans);
        }