Пример #1
0
        public void DeleteByCustomer()
        {
            AddCustomer();

            _payPlanService.SetPagination(1, 0);
            var response = _payPlanService.FindAllCustomers();

            Assert.IsNotNull(response);
            Assert.IsTrue(response.Results.Length == 1);

            var deleteResposne = _payPlanService.DeleteCustomer(response.Results[0]);

            Assert.IsNull(deleteResposne);
        }
Пример #2
0
        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 { }
        }