public void CreateNewIssue(AccountData acc, IssData iss, ProjData pj) { mts.MantisConnectPortTypeClient cl = new mts.MantisConnectPortTypeClient(); mts.IssueData apiiss = new mts.IssueData(); apiiss.summary = iss.Summary; apiiss.description = iss.Descr; apiiss.category = iss.Catgr; apiiss.project = new mts.ObjectRef(); apiiss.project.id = pj.ID; cl.mc_issue_add(acc.Name, acc.Password, apiiss); }
public void TestAPI() { AccountData acc = new AccountData() { Name = "administrator", Password = "******" }; IssData iss = new IssData() { Descr = "Piper New Description", Summary = "Piper New Summuryyyyyyy", Catgr = "General" }; ProjData pj = new ProjData() { ID = "1" }; app.APIHelper.CreateNewIssue(acc, iss, pj); }