Beispiel #1
0
        public void CreateIssue()
        {
            //Arrange
            CreateIssueRequest createIssueRequest = new CreateIssueRequest(token, method, issueDefaultParameters.category, issueDefaultParameters.summary, issueDefaultParameters.description, issueDefaultParameters.projectName);

            //Act
            Task <IRestResponse> responseCreate = createIssueRequest.ExecuteRequest();

            //Assert
            createIssueResponse = jsonDeserializer.Deserialize <CreateIssueResponse>(responseCreate);
            string nameCategory = createIssueResponse.issue.category.name;

            Assert.Equal(statusEsperado, responseCreate.Result.StatusCode.ToString());
            Assert.Equal(issueDefaultParameters.category, nameCategory);
        }
 public ErrorReportResultCreated(CreateIssueResponse issue)
     : base(issue.Number, issue.HtmlUrl)
 {
 }