Amido.Testing.WebApi.WebApiRequest.AddBody C# (CSharp) Method

AddBody() public method

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

            body = bodyString;
            return this;
        }