Ejemplo n.º 1
0
        public void Test_000_CleanUp()
        {
            // Remove Schedules
            try {
                var schResults = Schedule.FindAll();
                foreach (var schedule in schResults)
                {
                    schedule.Delete(true);
                }
            }
            catch (ApiException exc) {
                Assert.IsNotNull(exc);
            }

            // Remove Payment Methods
            try {
                var pmResults = RecurringPaymentMethod.FindAll();
                foreach (var pm in pmResults)
                {
                    pm.Delete(true);
                }
            }
            catch (ApiException exc) {
                Assert.IsNotNull(exc);
            }

            // Remove Customers
            try {
                var custResults = Customer.FindAll();
                foreach (var c in custResults)
                {
                    c.Delete(true);
                }
            }
            catch (ApiException exc) {
                Assert.IsNotNull(exc);
            }
        }
Ejemplo n.º 2
0
        public void Test_003b_FindAllPaymentMethods()
        {
            var paymentMethods = RecurringPaymentMethod.FindAll();

            Assert.IsNotNull(paymentMethods);
        }