public void SetStoreCategories()
		{
			// Skip if the user is not store enabled.
			if (TestData.Store == null)
			return;
			SetStoreCategoriesCall api = new SetStoreCategoriesCall(this.apiContext);
			// Build the StoreType object.
			StoreType st = new StoreType();
			st.Description = TestData.Store.Description;
			st.Logo = TestData.Store.Logo;
			st.MerchDisplay = TestData.Store.MerchDisplay;
			st.Name = TestData.Store.Name;
			api.Action = StoreCategoryUpdateActionCodeType.Add;
			api.DestinationParentCategoryID = 1234;
			api.ItemDestinationCategoryID = 4321;
			StoreCustomCategoryTypeCollection catArray = new StoreCustomCategoryTypeCollection();
			api.StoreCategoryList = catArray;
			StoreCustomCategoryType cat = new StoreCustomCategoryType();
			catArray.Add(cat);
			cat.CategoryID = 102;
			cat.Name = "TestStoreCategory";
			// Make API call.
			ApiException gotException = null;
			// Negative test.
			try 
			{
				api.Execute();
			} 
			catch (ApiException ex) 
			{
				gotException = ex;
			}
			Assert.IsNotNull(gotException);		
		}
        public void SetStoreCategories()
        {
            // Skip if the user is not store enabled.
            if (TestData.Store == null)
            {
                return;
            }
            SetStoreCategoriesCall api = new SetStoreCategoriesCall(this.apiContext);
            // Build the StoreType object.
            StoreType st = new StoreType();

            st.Description  = TestData.Store.Description;
            st.Logo         = TestData.Store.Logo;
            st.MerchDisplay = TestData.Store.MerchDisplay;
            st.Name         = TestData.Store.Name;
            api.Action      = StoreCategoryUpdateActionCodeType.Add;
            api.DestinationParentCategoryID = 1234;
            api.ItemDestinationCategoryID   = 4321;
            StoreCustomCategoryTypeCollection catArray = new StoreCustomCategoryTypeCollection();

            api.StoreCategoryList = catArray;
            StoreCustomCategoryType cat = new StoreCustomCategoryType();

            catArray.Add(cat);
            cat.CategoryID = 102;
            cat.Name       = "TestStoreCategory";
            // Make API call.
            ApiException gotException = null;

            // Negative test.
            try
            {
                api.Execute();
            }
            catch (ApiException ex)
            {
                gotException = ex;
            }
            Assert.IsNotNull(gotException);
        }