public void VerificaQuantidadeRegistroPorPaginaDataDriven(string pageSize, string page)
        {
            GetAllIssuesRequest getAllIssuesRequest = new GetAllIssuesRequest(pageSize, page);

            IRestResponse <dynamic> response = getAllIssuesRequest.ExecuteRequest();

            Assert.AreEqual(System.Net.HttpStatusCode.OK, response.StatusCode);

            string[] arrayRegex = new string[]
            {
                "\"description\":(.*?)",
            };
            MatchCollection matches;

            foreach (string regex in arrayRegex)
            {
                matches = new Regex(regex).Matches(response.Content);
                Assert.That(matches.Count == Convert.ToInt32(pageSize));
            }
        }
        public void Test_ObterInformacoesDeTodosOsProblemaComSucesso()
        {
            #region Parameters
            string statusEsperado = "OK";
            int    pageSize       = 10;
            int    page           = 1;

            string summary1     = "This is a test issue";
            string description1 = "This is a test description";

            string summary2     = "Sumary Issue 09 Test Post";
            string description2 = "Sumary Issue 09 Test Post description";

            #endregion

            #region Acoes
            GetAllIssuesRequest     getAllIssuesRequest = new GetAllIssuesRequest(pageSize, page);
            IRestResponse <dynamic> response            = getAllIssuesRequest.ExecuteRequest();
            #endregion

            #region Asserts
            string summaryResposta1     = response.Data["issues"][1]["summary"];
            string descriptionResposta1 = response.Data["issues"][1]["description"];

            string summaryResposta2     = response.Data["issues"][0]["summary"];
            string descriptionResposta2 = response.Data["issues"][0]["description"];

            Assert.Multiple(() =>
            {
                Assert.AreEqual(statusEsperado, response.StatusCode.ToString());

                Assert.AreEqual(summary1, summaryResposta1);
                Assert.AreEqual(description1, descriptionResposta1);

                Assert.AreEqual(summary2, summaryResposta2);
                Assert.AreEqual(description2, descriptionResposta2);
            });

            #endregion
        }