public void SellerReverseDispute() { SellerReverseDisputeCall api = new SellerReverseDisputeCall(this.apiContext); String id = "Test"; api.DisputeID = id; api.DisputeResolutionReason = DisputeResolutionReasonCodeType.CameToAgreement; // Make API call. ApiException gotException = null; try { api.Execute(); } catch(ApiException ex) { gotException = ex; } Assert.IsNotNull(gotException); }
private void BtnSellerReverseDispute_Click(object sender, System.EventArgs e) { try { TxtStatus.Text = ""; SellerReverseDisputeCall apicall = new SellerReverseDisputeCall(Context); apicall.SellerReverseDispute(TxtDisputeId.Text, (DisputeResolutionReasonCodeType) Enum.Parse(typeof(DisputeResolutionReasonCodeType), CboReason.SelectedItem.ToString())); TxtStatus.Text = apicall.ApiResponse.Ack.ToString(); } catch(Exception ex) { MessageBox.Show(ex.Message); } }