/// <summary> /// Delete tasks with the condition whether affect task occurrences. /// </summary> /// <param name="affectedTaskOccurrences">The value indicate whether affect task occurrences.</param> /// <param name="itemIds">The item id of tasks which will be deleted.</param> protected void DeleteTasks(AffectedTaskOccurrencesType affectedTaskOccurrences, params ItemIdType[] itemIds) { // Define the DeleteItem request. DeleteItemType deleteItemRequest = TestSuiteHelper.GenerateDeleteItemRequest(itemIds); deleteItemRequest.AffectedTaskOccurrences = affectedTaskOccurrences; // Call the DeleteItem method to delete the task items created in previous steps. DeleteItemResponseType deleteItemResponse = this.TASKAdapter.DeleteItem(deleteItemRequest); this.VerifyResponseMessage(deleteItemResponse); }
/// <summary> /// Delete tasks with the condition whether affect task occurrences. /// </summary> /// <param name="affectedTaskOccurrences">The value indicate whether affect task occurrences.</param> /// <param name="itemIds">The item id of tasks which will be deleted.</param> protected void DeleteTasks(AffectedTaskOccurrencesType affectedTaskOccurrences, params ItemIdType[] itemIds) { // Define the DeleteItem request. DeleteItemType deleteItemRequest = TestSuiteHelper.GenerateDeleteItemRequest(itemIds); deleteItemRequest.AffectedTaskOccurrences = affectedTaskOccurrences; // Call the DeleteItem method to delete the task items created in previous steps. DeleteItemResponseType deleteItemResponse = this.TASKAdapter.DeleteItem(deleteItemRequest); this.VerifyResponseMessage(deleteItemResponse); }