public void DeleteSchedulesBySchedule() { AddSchedule(); _payPlanService.SetPagination(1, 0); var schedules = _payPlanService.FindAllSchedules(); Assert.IsNotNull(schedules); Assert.IsTrue(schedules.Results.Length == 1); var result = _payPlanService.DeleteSchedule(schedules.Results[0]); Assert.IsNull(result); }
public void recurring_000_CleanUp() { // Remove Schedules try { var schResults = _payPlanService.FindAllSchedules(); foreach (var schedule in schResults.Results) { _payPlanService.DeleteSchedule(schedule, true); } } catch { } // Remove Payment Methods try { var pmResults = _payPlanService.FindAllPaymentMethods(); foreach (var pm in pmResults.Results) { _payPlanService.DeletePaymentMethod(pm, true); } } catch { } // Remove Customers try { var custResults = _payPlanService.FindAllCustomers(); foreach (var c in custResults.Results) { _payPlanService.DeleteCustomer(c, true); } } catch { } }