UnitTests.Subtext.SimulatedHttpRequest.GetPreloadedEntityBody C# (CSharp) Method

GetPreloadedEntityBody() public method

Reads request data from the client (when not preloaded).
public GetPreloadedEntityBody ( ) : byte[]
return byte[]
        public override byte[] GetPreloadedEntityBody()
        {
            string formText = string.Empty;

            foreach(string key in this.formVariables.Keys)
            {
                formText += string.Format("{0}={1}&", key, this.formVariables[key]);
            }

            return Encoding.UTF8.GetBytes(formText);
        }