Example #1
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData 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);
 }
Example #2
0
        public void AddNewIssues()
        {
            AccountData account = new AccountData()
            {
                Name     = "Administrator",
                Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "1"
            };
            IssueData issue = new IssueData()
            {
                Summary     = "some short text",
                Description = "some long text",
                Category    = "General"
            };

            app.API.CreateNewIssue(account, project, issue);
        }
        public void AddNewIssue()
        {
            AccountData account = new AccountData()
            {
                Name     = "administrator",
                Password = "******"
            };

            IssueData issue = new IssueData()
            {
                Summary     = "test",
                Description = "test",
                Category    = "General"
            };

            ProjectData projet = new ProjectData()
            {
                Id = "1"
            };

            app.Api.CreateNewIssue(account, projet, issue);
        }