public void BillPaymentCheckAddTestUsingoAuth(ServiceContext qboContextoAuth)
 {
     //Creating the BillPayment for Add
     BillPayment billPayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
     //Adding the BillPayment
     BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, billPayment);
 }
        public void BillPaymentAddAsyncTestsUsingoAuth(ServiceContext qboContextoAuth)
        {
            //Creating the BillPayment for Add
            BillPayment entity = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);

            BillPayment added = Helper.AddAsync <BillPayment>(qboContextoAuth, entity);
        }
Esempio n. 3
0
        [TestMethod][Ignore]   //IgnoreReason: Not Supported
        public void BillPaymentVoidAsyncTestsUsingoAuth()
        {
            //Creating the BillPayment for Adding
            BillPayment entity = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, entity);

            Helper.VoidAsync <BillPayment>(qboContextoAuth, added);
        }
Esempio n. 4
0
        public void BillPaymentAddAsyncTestsUsingoAuth()
        {
            //Creating the BillPayment for Add
            BillPayment entity = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);

            BillPayment added = Helper.AddAsync <BillPayment>(qboContextoAuth, entity);

            QBOHelper.VerifyBillPayment(entity, added);
        }
        public void BillPaymentFindByIdAsyncTestsUsingoAuth(ServiceContext qboContextoAuth)
        {
            //Creating the BillPayment for Adding
            BillPayment entity = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, entity);

            //FindById and verify
            Helper.FindByIdAsync <BillPayment>(qboContextoAuth, added);
        }
Esempio n. 6
0
        public void BillPaymentFindbyIdTestUsingoAuth()
        {
            //Creating the BillPayment for Adding
            BillPayment billPayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, billPayment);
            BillPayment found = Helper.FindById <BillPayment>(qboContextoAuth, added);

            QBOHelper.VerifyBillPayment(found, added);
        }
Esempio n. 7
0
        public void BillPaymentCheckAddTestUsingoAuth()
        {
            //Creating the BillPayment for Add
            BillPayment billPayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, billPayment);

            //Verify the added BillPayment
            QBOHelper.VerifyBillPayment(billPayment, added);
        }
 public void BillPaymentUpdateTestUsingoAuth(ServiceContext qboContextoAuth)
 {
     //Creating the BillPayment for Adding
     BillPayment billPayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
     //Adding the BillPayment
     BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, billPayment);
     //Change the data of added entity
     BillPayment changed = QBOHelper.UpdateBillPayment(qboContextoAuth, added);
     //Update the returned entity data
     BillPayment updated = Helper.Update <BillPayment>(qboContextoAuth, changed);//Verify the updated BillPayment
 }
        public void BillPaymentUpdatedAsyncTestsUsingoAuth(ServiceContext qboContextoAuth)
        {
            //Creating the BillPayment for Adding
            BillPayment entity = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, entity);

            //Update the BillPayment
            BillPayment updated = QBOHelper.UpdateBillPayment(qboContextoAuth, added);
            //Call the service
            BillPayment updatedReturned = Helper.UpdateAsync <BillPayment>(qboContextoAuth, updated);
        }
Esempio n. 10
0
        [TestMethod][Ignore]  //IgnoreReason:  Not Supported
        public void BillPaymentSparseUpdateTestUsingoAuth()
        {
            //Creating the BillPayment for Adding
            BillPayment BillPayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, BillPayment);
            //Change the data of added entity
            BillPayment changed = QBOHelper.UpdateBillPaymentSparse(qboContextoAuth, added.Id, added.SyncToken);
            //Update the returned entity data
            BillPayment updated = Helper.Update <BillPayment>(qboContextoAuth, changed);//Verify the updated BillPayment

            QBOHelper.VerifyBillPaymentSparse(changed, updated);
        }
        public void BillPaymentVoidTestUsingoAuth(ServiceContext qboContextoAuth)
        {
            //Creating the BillPayment for Adding
            BillPayment billpayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, billpayment);

            //Void the returned entity
            try
            {
                BillPayment voided = Helper.Void <BillPayment>(qboContextoAuth, added);
            }
            catch (IdsException ex)
            {
            }
        }
        public void BillPaymentBatchUsingoAuth(ServiceContext qboContextoAuth)
        {
            Dictionary <OperationEnum, object> batchEntries = new Dictionary <OperationEnum, object>();

            BillPayment entity   = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            BillPayment existing = Helper.Add <BillPayment>(qboContextoAuth, entity);

            batchEntries.Add(OperationEnum.create, QBOHelper.CreateBillPaymentCheck(qboContextoAuth));

            batchEntries.Add(OperationEnum.update, QBOHelper.UpdateBillPayment(qboContextoAuth, existing));

            //batchEntries.Add(OperationEnum.query, "select * from BillPayment");

            //batchEntries.Add(OperationEnum.delete, existing);

            ReadOnlyCollection <IntuitBatchResponse> batchResponses = Helper.Batch <BillPayment>(qboContextoAuth, batchEntries);
        }
Esempio n. 13
0
        [TestMethod][Ignore]  //IgnoreReason: Not supported
        public void BillPaymentVoidTestUsingoAuth()
        {
            //Creating the BillPayment for Adding
            BillPayment BillPayment = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            //Adding the BillPayment
            BillPayment added = Helper.Add <BillPayment>(qboContextoAuth, BillPayment);

            //Void the returned entity
            try
            {
                BillPayment voided = Helper.Void <BillPayment>(qboContextoAuth, added);
                Assert.AreEqual(EntityStatusEnum.Voided, voided.status);
            }
            catch (IdsException ex)
            {
                Assert.Fail();
            }
        }
Esempio n. 14
0
        public void BillPaymentBatchUsingoAuth()
        {
            Dictionary <OperationEnum, object> batchEntries = new Dictionary <OperationEnum, object>();

            BillPayment entity   = QBOHelper.CreateBillPaymentCheck(qboContextoAuth);
            BillPayment existing = Helper.Add <BillPayment>(qboContextoAuth, entity);

            batchEntries.Add(OperationEnum.create, QBOHelper.CreateBillPaymentCheck(qboContextoAuth));

            batchEntries.Add(OperationEnum.update, QBOHelper.UpdateBillPayment(qboContextoAuth, existing));

            //batchEntries.Add(OperationEnum.query, "select * from BillPayment");

            //batchEntries.Add(OperationEnum.delete, existing);

            ReadOnlyCollection <IntuitBatchResponse> batchResponses = Helper.BatchTest <BillPayment>(qboContextoAuth, batchEntries);

            int position = 0;

            foreach (IntuitBatchResponse resp in batchResponses)
            {
                if (resp.ResponseType == ResponseType.Exception)
                {
                    Assert.Fail(resp.Exception.ToString());
                }

                if (resp.ResponseType == ResponseType.Entity)
                {
                    Assert.IsFalse(string.IsNullOrEmpty((resp.Entity as BillPayment).Id));
                }
                else if (resp.ResponseType == ResponseType.Query)
                {
                    Assert.IsTrue(resp.Entities != null && resp.Entities.Count > 0);
                }
                else if (resp.ResponseType == ResponseType.CdcQuery)
                {
                    Assert.IsTrue(resp.CDCResponse != null && resp.CDCResponse.entities != null && resp.CDCResponse.entities.Count > 0);
                }

                position++;
            }
        }