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); }
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); }
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); }
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(); } }
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(); } }