danielcrenna/hammock — Issue #43: Setting request entity sets the request method to POST (if yet unset) ignoring the RestClient.Method value.
Author: MarkKharitonov
Created: 2011-10-11 08:04:02+00:00
State: open

var client = new RestClient
{
Method = WebMethod.Put,
};
var request = new RestRequest
{
Entity = true,
};
Debug.Assert(request.Method == WebMethod.Put);

The assertion fails, because setting the entity ignores the method set on the client.