Пример #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);
 }
Пример #2
0
        public void AddNewIssueTests()
        {
            AccountData account = new AccountData()
            {
                Name = "administrator", Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "6"
            };
            IssueData issue = new IssueData()
            {
                Summary     = "some txt",
                Description = "some long txt",
                Category    = "General"
            };

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