public DeploymentGroup CreateDeploymentGroup()
        {
            String projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;

            // Get a task agent client instance
            VssConnection       connection = Context.Connection;
            TaskAgentHttpClient dgClient   = connection.GetClient <TaskAgentHttpClient>();

            // Create deployment groups
            DeploymentGroupCreateParameter deploymentGroupCreateParameter = new DeploymentGroupCreateParameter()
            {
                Name        = "MyDeploymentGroup1",
                Description = "This deployment group is created to demnostrate the client usage"
            };

            DeploymentGroup addedDeploymentGroup = dgClient.AddDeploymentGroupAsync(projectName, deploymentGroupCreateParameter).Result;

            this.addedDeploymentGroupId = addedDeploymentGroup.Id;
            return(addedDeploymentGroup);
        }