public void ApiClientTest_TestaPostJSON_ReturnNull()
        {
            var resultMethod = new ApiModel.SendModel
            {
                Id     = 321654,
                Values = "produto"
            };

            var API      = new APIClient();
            var response = API.PostarJSON(URLTest, resultMethod).Result;

            Assert.AreEqual(null, response.Result);
        }
        public void ApiClientTest_TestaDeleteJSON_ReturnObjetoPostado()
        {
            var resultMethod = new ApiModel.SendModel
            {
                Id     = 321654,
                Values = "produto"
            };

            var API      = new APIClient();
            var response = (ApiModel.SendModel)API.DeletarJSON(URLTest, 1, typeof(ApiModel.SendModel)).Result.Result;

            Assert.AreEqual(new ApiModel.SendModel().Id, response.Id);
        }
        public void Test_PutJSON()
        {
            ApiModel.SendModel sendMessage = new ApiModel.SendModel();
            sendMessage.Id     = 1;
            sendMessage.Values = "PUT";

            ApiModel.MessageModel returnMessageExpected = new ApiModel.MessageModel();
            returnMessageExpected.message = string.Concat(sendMessage.Id, " - ", Convert.ToString(sendMessage.Values));

            ApiClient.APIClient _ApiClient = new APIClient();
            var response = (ApiModel.MessageModel)_ApiClient.PutJSON("https://infinitopensourceclienttestapi.azurewebsites.net/api/values", sendMessage, typeof(ApiModel.MessageModel)).Result.Result;

            Assert.AreEqual(returnMessageExpected.message, response.message);
        }