Exemplo n.º 1
0
        public void PurchaseByVendorFindbyIdTestUsingoAuth()
        {
            //Creating the PurchaseByVendor for Adding
            PurchaseByVendor purchaseByVendor = QBOHelper.CreatePurchaseByVendor(qboContextoAuth);
            //Adding the PurchaseByVendor
            PurchaseByVendor added = Helper.Add <PurchaseByVendor>(qboContextoAuth, purchaseByVendor);
            PurchaseByVendor found = Helper.FindById <PurchaseByVendor>(qboContextoAuth, added);

            QBOHelper.VerifyPurchaseByVendor(found, added);
        }
Exemplo n.º 2
0
        public void PurchaseByVendorAddTestUsingoAuth()
        {
            //Creating the Bill for Add
            PurchaseByVendor purchaseByVendor = QBOHelper.CreatePurchaseByVendor(qboContextoAuth);
            //Adding the PurchaseByVendor
            PurchaseByVendor added = Helper.Add <PurchaseByVendor>(qboContextoAuth, purchaseByVendor);

            //Verify the added PurchaseByVendor
            QBOHelper.VerifyPurchaseByVendor(purchaseByVendor, added);
        }
Exemplo n.º 3
0
        public void PurchaseByVendorSparseUpdateTestUsingoAuth()
        {
            //Creating the PurchaseByVendor for Adding
            PurchaseByVendor purchaseByVendor = QBOHelper.CreatePurchaseByVendor(qboContextoAuth);
            //Adding the PurchaseByVendor
            PurchaseByVendor added = Helper.Add <PurchaseByVendor>(qboContextoAuth, purchaseByVendor);
            //Change the data of added entity
            PurchaseByVendor changed = QBOHelper.UpdatePurchaseByVendorSparse(qboContextoAuth, added.Id, added.SyncToken);
            //Update the returned entity data
            PurchaseByVendor updated = Helper.Update <PurchaseByVendor>(qboContextoAuth, changed);//Verify the updated PurchaseByVendor

            QBOHelper.VerifyPurchaseByVendorSparse(changed, updated);
        }
Exemplo n.º 4
0
        public void PurchaseByVendorVoidTestUsingoAuth()
        {
            //Creating the entity for Adding
            PurchaseByVendor entity = QBOHelper.CreatePurchaseByVendor(qboContextoAuth);
            //Adding the entity
            PurchaseByVendor added = Helper.Add <PurchaseByVendor>(qboContextoAuth, entity);

            //Void the returned entity
            try
            {
                PurchaseByVendor voided = Helper.Void <PurchaseByVendor>(qboContextoAuth, added);
                Assert.AreEqual(EntityStatusEnum.Voided, voided.status);
            }
            catch (IdsException ex)
            {
                Assert.Fail();
            }
        }
Exemplo n.º 5
0
        public void PurchaseByVendorDeleteTestUsingoAuth()
        {
            //Creating the PurchaseByVendor for Adding
            PurchaseByVendor purchaseByVendor = QBOHelper.CreatePurchaseByVendor(qboContextoAuth);
            //Adding the PurchaseByVendor
            PurchaseByVendor added = Helper.Add <PurchaseByVendor>(qboContextoAuth, purchaseByVendor);

            //Delete the returned entity
            try
            {
                PurchaseByVendor deleted = Helper.Delete <PurchaseByVendor>(qboContextoAuth, added);
                Assert.AreEqual(EntityStatusEnum.Deleted, deleted.status);
            }
            catch (IdsException ex)
            {
                Assert.Fail();
            }
        }