public void TestHashRequestBody()
        {
            IRestRequest request = new RestRequest(TestResourcePath, Method.POST);

            request.AddJsonBody("{\"test\":\"payload\"}");

            string result = awsSignerHelperUnderTest.HashRequestBody(request);

            Assert.NotEmpty(result);
        }
Exemple #2
0
        public void TestHashRequestBody()
        {
            HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, TestResourcePath);

            request.Content = new StringContent("{\"test\":\"payload\"}");

            string result = awsSignerHelperUnderTest.HashRequestBody(request);

            Assert.NotEmpty(result);
        }