Exemplo n.º 1
0
        public void PriceLevelPerItemFindbyIdTestUsingoAuth()
        {
            //Creating the PriceLevelPerItem for Adding
            PriceLevelPerItem priceLevelPerItem = QBOHelper.CreatePriceLevelPerItem(qboContextoAuth);
            //Adding the PriceLevelPerItem
            PriceLevelPerItem added = Helper.Add <PriceLevelPerItem>(qboContextoAuth, priceLevelPerItem);
            PriceLevelPerItem found = Helper.FindById <PriceLevelPerItem>(qboContextoAuth, added);

            QBOHelper.VerifyPriceLevelPerItem(found, added);
        }
Exemplo n.º 2
0
        public void PriceLevelPerItemAddTestUsingoAuth()
        {
            //Creating the Bill for Add
            PriceLevelPerItem priceLevelPerItem = QBOHelper.CreatePriceLevelPerItem(qboContextoAuth);
            //Adding the PriceLevelPerItem
            PriceLevelPerItem added = Helper.Add <PriceLevelPerItem>(qboContextoAuth, priceLevelPerItem);

            //Verify the added PriceLevelPerItem
            QBOHelper.VerifyPriceLevelPerItem(priceLevelPerItem, added);
        }
Exemplo n.º 3
0
        public void PriceLevelPerItemSparseUpdateTestUsingoAuth()
        {
            //Creating the PriceLevelPerItem for Adding
            PriceLevelPerItem priceLevelPerItem = QBOHelper.CreatePriceLevelPerItem(qboContextoAuth);
            //Adding the PriceLevelPerItem
            PriceLevelPerItem added = Helper.Add <PriceLevelPerItem>(qboContextoAuth, priceLevelPerItem);
            //Change the data of added entity
            PriceLevelPerItem changed = QBOHelper.UpdatePriceLevelPerItemSparse(qboContextoAuth, added.Id, added.SyncToken);
            //Update the returned entity data
            PriceLevelPerItem updated = Helper.Update <PriceLevelPerItem>(qboContextoAuth, changed);//Verify the updated PriceLevelPerItem

            QBOHelper.VerifyPriceLevelPerItemSparse(changed, updated);
        }
Exemplo n.º 4
0
        public void PriceLevelPerItemVoidTestUsingoAuth()
        {
            //Creating the entity for Adding
            PriceLevelPerItem entity = QBOHelper.CreatePriceLevelPerItem(qboContextoAuth);
            //Adding the entity
            PriceLevelPerItem added = Helper.Add <PriceLevelPerItem>(qboContextoAuth, entity);

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

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