public void TestHashRequestBody() { IRestRequest request = new RestRequest(TestResourcePath, Method.POST); request.AddJsonBody("{\"test\":\"payload\"}"); string result = awsSignerHelperUnderTest.HashRequestBody(request); Assert.NotEmpty(result); }
public void TestHashRequestBody() { HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, TestResourcePath); request.Content = new StringContent("{\"test\":\"payload\"}"); string result = awsSignerHelperUnderTest.HashRequestBody(request); Assert.NotEmpty(result); }