public void GetStoreCustomPage()
 {
     GetStoreCustomPageCall api = new GetStoreCustomPageCall(this.apiContext);
     api.PageID = 0;
     // Make API call.
     ApiException gotException = null;
     try
     {
         StoreCustomPageTypeCollection pages = api.GetStoreCustomPage();
         TestData.StoreCustomPages = pages;
     }
     catch(ApiException ex)
     {
         gotException = ex;
     }
     Assert.IsTrue(gotException != null);
 }
		private void BtnGetStoreCustomPage_Click(object sender, System.EventArgs e)
		{
			try
			{
				LstCustomPage.Items.Clear();

				GetStoreCustomPageCall apicall = new GetStoreCustomPageCall(Context);
			
				if (TxtPageId.Text != String.Empty)
					apicall.PageID = long.Parse(TxtPageId.Text);

				StoreCustomPageTypeCollection pages = apicall.GetStoreCustomPage();

				foreach (StoreCustomPageType page in pages)
				{
					string[] listparams = new string[3];
					listparams[0] = page.Name;
					listparams[1] = page.PageID.ToString();
					listparams[2] = page.Status.ToString();

					ListViewItem vi = new ListViewItem(listparams);
					LstCustomPage.Items.Add(vi);
				}
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}

		}