Example #1
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     Mantiss.MantisConnectPortTypeClient client
         = new Mantiss.MantisConnectPortTypeClient();
     Mantiss.IssueData issue = new Mantiss.IssueData();
     issue.category    = issueData.Category;
     issue.summary     = issueData.Summary;
     issue.description = issueData.Description;
     issue.project     = new Mantiss.ObjectRef();
     issue.project.id  = project.ID;
     client.mc_issue_add(account.Name, account.Password, issue);
 }
Example #2
0
        public void AddNewIssue()
        {
            AccountData account   = new AccountData("administrator", "admin");
            IssueData   issueData = new IssueData()
            {
                Summary     = "Summary",
                Description = "Description",
                Category    = "General"
            };
            ProjectData project = new ProjectData()
            {
                ID = "3"
            };

            app.API.CreateNewIssue(account, project, issueData);
        }