public void AdicionarVersion()
        {
            #region
            string statusCode = "NoContent";
            string idProjeto  = ProjetoDBSteps.RetornaIdProjeto();
            string versao     = GeneralHelpers.ReturnStringWithRandomNumbers(1) + "." + GeneralHelpers.ReturnStringWithRandomNumbers(1);
            #endregion

            VersaoRequest versaoRequest = new VersaoRequest(idProjeto);
            versaoRequest.SetBody(versao);
            IRestResponse <dynamic> response = versaoRequest.ExecuteRequest();
            Assert.AreEqual(statusCode, response.StatusCode.ToString());
        }
Example #2
0
        public void AdicionaVersaoProjeto()
        {
            #region Parameters
            string versao = "2.0";
            //Resultado esperado
            string statusCodeEsperado = "NoContent";
            #endregion

            VersaoRequest request = new VersaoRequest(1);
            request.setJsonBody(versao);

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

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