Exemplo n.º 1
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     Mantis.IssueData issue = new Mantis.IssueData();
     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);
 }
Exemplo n.º 2
0
        public void TestAddNewIssue()
        {
            IssueData issue = new IssueData()
            {
                Summary     = "some short text",
                Description = "some lont text",
                Category    = "General"
            };

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

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