protected void btnCancel_Click(Object Sender, EventArgs e) { int intRequest = Int32.Parse(Request.QueryString["rid"]); oRequest.Cancel(intRequest); Response.Redirect(oPage.GetFullLink(intPage)); }
public void TestCreateInfoCancel() { var create = r.Create("812-174-9528", 0.01, altToken: "raopmI6N9UIq87uWqhXB5v7xIgi49EH3K3qSFwtoZ/CzcBCN+l"); Assert.IsInstanceOfType(create, typeof(int)); var info = r.Info(create.ToString(), altToken: "raopmI6N9UIq87uWqhXB5v7xIgi49EH3K3qSFwtoZ/CzcBCN+l"); Assert.IsInstanceOfType(info, typeof(Request)); var cancel = r.Cancel(create.ToString(), altToken: "raopmI6N9UIq87uWqhXB5v7xIgi49EH3K3qSFwtoZ/CzcBCN+l"); Assert.IsInstanceOfType(cancel, typeof(string)); }