예제 #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.Username, account.Password, issue);
        }
예제 #2
0
        public void AddNewIssue()
        {
            AccountData account = new AccountData("administrator", "root");



            IssueData issue = new IssueData()
            {
                Summary     = "some short text",
                Description = "some long text",
                Category    = "General"
            };


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

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