public void CreditCardPaymentAddAsyncTest()
        {
            CreditCardPaymentTxn entity = QBOHelper.CreateCreditCardPayment(qboContextoAuth);
            CreditCardPaymentTxn added  = Helper.AddAsync <CreditCardPaymentTxn>(qboContextoAuth, entity);

            QBOHelper.VerifyCreditCardPayment(entity, added);
        }
        public void CreditCardPaymentQueryTest()
        {
            QueryService <CreditCardPaymentTxn> entityQuery = new QueryService <CreditCardPaymentTxn>(qboContextoAuth);
            CreditCardPaymentTxn        existing            = Helper.FindOrAdd <CreditCardPaymentTxn>(qboContextoAuth, new CreditCardPaymentTxn());
            List <CreditCardPaymentTxn> entities            = entityQuery.ExecuteIdsQuery("SELECT * FROM CreditCardPayment where Id='" + existing.Id + "'").ToList <CreditCardPaymentTxn>();

            Assert.IsTrue(entities.Count() > 0);
        }
        public void CreditCardPaymentDeleteAsyncTest()
        {
            CreditCardPaymentTxn entity  = QBOHelper.CreateCreditCardPayment(qboContextoAuth);
            CreditCardPaymentTxn added   = Helper.AddAsync <CreditCardPaymentTxn>(qboContextoAuth, entity);
            CreditCardPaymentTxn deleted = Helper.DeleteAsync <CreditCardPaymentTxn>(qboContextoAuth, added);

            Assert.AreEqual(EntityStatusEnum.Deleted, deleted.status);
        }
        public void CreditCardPaymentUpdateAsyncTest()
        {
            CreditCardPaymentTxn entity = QBOHelper.CreateCreditCardPayment(qboContextoAuth);
            CreditCardPaymentTxn added  = Helper.AddAsync <CreditCardPaymentTxn>(qboContextoAuth, entity);
            CreditCardPaymentTxn creditCardPaymentUpdated = QBOHelper.UpdateCreditCardPayment(qboContextoAuth, added);
            CreditCardPaymentTxn updated = Helper.UpdateAsync <CreditCardPaymentTxn>(qboContextoAuth, creditCardPaymentUpdated);

            QBOHelper.VerifyCreditCardPayment(creditCardPaymentUpdated, updated);
        }
        public void CreditCardPaymentFindByIdTest()
        {
            //Creating the Payment for Adding
            CreditCardPaymentTxn creditCardPaymentTxn = QBOHelper.CreateCreditCardPayment(qboContextoAuth);
            //Adding the Payment
            CreditCardPaymentTxn added = Helper.Add <CreditCardPaymentTxn>(qboContextoAuth, creditCardPaymentTxn);
            CreditCardPaymentTxn found = Helper.FindById <CreditCardPaymentTxn>(qboContextoAuth, added);

            QBOHelper.VerifyCreditCardPayment(found, added);
        }
        public void CreditCardPaymentAddTest()
        {
            //Creating the credit card Payment for Add
            CreditCardPaymentTxn creditCardPayment = QBOHelper.CreateCreditCardPayment(qboContextoAuth);
            //Adding the  credit card payment
            CreditCardPaymentTxn added = Helper.Add <CreditCardPaymentTxn>(qboContextoAuth, creditCardPayment);

            //Verify the added Payment
            QBOHelper.VerifyCreditCardPayment(creditCardPayment, added);
        }
        public void CreditCardPaymentDeleteTest()
        {
            //Creating the credit card Payment for Add
            CreditCardPaymentTxn creditCardPayment = QBOHelper.CreateCreditCardPayment(qboContextoAuth);
            //Adding the  credit card payment
            CreditCardPaymentTxn added = Helper.Add <CreditCardPaymentTxn>(qboContextoAuth, creditCardPayment);
            //updating the  credit card payment
            CreditCardPaymentTxn deleted = Helper.Delete <CreditCardPaymentTxn>(qboContextoAuth, added);

            Assert.AreEqual(EntityStatusEnum.Deleted, deleted.status);
        }