/// <summary>Initializes a new instance of <see cref="TestWebReponse"/>
        /// with the response stream to return.</summary>
        public TestWebReponse(TestWebStream responseStream)
        {
            this.responseStream = responseStream;
            _contentLength = responseStream.Length;

            _headers = new WebHeaderCollection();
        }
 public void SetResponseStream(string responseText)
 {
     ResponseStream = new TestWebStream(Encoding.UTF8.GetBytes(responseText));
 }