public void DeleteTestConfiguration() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; // Get a testplan client instance VssConnection connection = Context.Connection; TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>(); //Delete the test configuration testPlanClient.DeleteTestConfgurationAsync(projectName, 8).SyncResult(); }
public void DeleteTestConfiguration() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; // Get a testplan client instance VssConnection connection = Context.Connection; TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>(); TestConfiguration newConfiguration; Context.TryGetValue <TestConfiguration>("$newConfiguration", out newConfiguration); if (newConfiguration != null) { int id = newConfiguration.Id; //Delete the test configuration testPlanClient.DeleteTestConfgurationAsync(projectName, id).SyncResult(); } }