コード例 #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);
 }
コード例 #2
0
ファイル: AddNewIssue.cs プロジェクト: serega6429/mantis-test
        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);
        }