Beispiel #1
0
 public void CreateIssue(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);
 }
Beispiel #2
0
        public void AddNewIssueTest()
        {
            IfNeedToCreateProject();
            ProjectData project = app.Api.GetListProjects(admin)[0];
            IssueData   issue   = new IssueData()
            {
                Summary     = "aaaaa",
                Description = "add asdasd dada",
                Category    = "General",
            };

            app.Api.CreateIssue(admin, project, issue);
        }