Amido.Testing.Http.RestClient.AddBody C# (CSharp) Method

AddBody() public method

The request body as a string.
public AddBody ( string bodyString ) : IRestClient
bodyString string The string to be used for the request body.
return IRestClient
        public virtual IRestClient AddBody(string bodyString)
        {
            Contract.Requires(!string.IsNullOrWhiteSpace(bodyString), "The body string cannot be null or empty.");

            foreach (var httpRequestMessage in httpRequestMessageList)
            {
                httpRequestMessage.Content = new StringContent(bodyString);
            }
           
            return this;
        }