Exemplo n.º 1
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueDataLocal issueData)
 {
     Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();
     Mantis.IssueData issue = new Mantis.IssueData();
     issue.summary     = issueData.Summary;
     issue.description = issueData.Description;
     issue.category    = issueData.Category;
     issue.project     = new Mantis.ObjectRef();
     issue.project.id  = project.Id;
     client.mc_issue_add(account.Name, account.Password, issue);
 }
Exemplo n.º 2
0
        public void AddIssue()
        {
            AccountData account = new AccountData("administrator")
            {
                Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "9"
            };
            IssueDataLocal issueData = new IssueDataLocal()
            {
                Summary = "some short text", Description = "some long text", Category = "General"
            };

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