Ejemplo n.º 1
0
        public void FuturePaymentTest()
        {
            var context          = UnitTestUtil.GetApiContext();
            var futurePayment    = CreateFuturePayment();
            var retrievedPayment = FuturePayment.Get(context, futurePayment.id);

            Assert.AreEqual(futurePayment.id, retrievedPayment.id);
        }
        public void FuturePaymentTest()
        {
            APIContext context          = UnitTestUtil.GetApiContext();
            Payment    futurePayment    = GetFuturePayment();
            Payment    retrievedPayment = FuturePayment.Get(context, futurePayment.id);

            Assert.AreEqual(futurePayment.id, retrievedPayment.id);
        }
Ejemplo n.º 3
0
 public void FuturePaymentTest()
 {
     try
     {
         var context          = TestingUtil.GetApiContext();
         var futurePayment    = CreateFuturePayment();
         var retrievedPayment = FuturePayment.Get(context, futurePayment.id);
         Assert.AreEqual(futurePayment.id, retrievedPayment.id);
     }
     finally
     {
         TestingUtil.RecordConnectionDetails();
     }
 }
Ejemplo n.º 4
0
 public void FuturePaymentTest()
 {
     try
     {
         var context          = TestingUtil.GetApiContext();
         var futurePayment    = CreateFuturePayment();
         var retrievedPayment = FuturePayment.Get(context, futurePayment.id);
         Assert.AreEqual(futurePayment.id, retrievedPayment.id);
     }
     catch (ConnectionException ex)
     {
         TestingUtil.WriteConnectionExceptionDetails(ex);
         throw;
     }
 }
        public void FuturePaymentTest()
        {
            try
            {
                var apiContext = TestingUtil.GetApiContext();
                this.RecordConnectionDetails();

                var futurePayment = CreateFuturePayment();
                this.RecordConnectionDetails();

                var retrievedPayment = FuturePayment.Get(apiContext, futurePayment.id);
                this.RecordConnectionDetails();

                Assert.AreEqual(futurePayment.id, retrievedPayment.id);
            }
            catch (ConnectionException)
            {
                this.RecordConnectionDetails(false);
                throw;
            }
        }