/// <summary>
 /// Loads the messages for mock sequence.
 /// </summary>
 /// <param name="messages">The messages for mock purposes.</param>
 /// <param name="callback">The callbac to be called before sending response.
 /// </param>
 public void LoadMessages(HttpMessage[] messages, OnBeforeSendResponse callback) {
   messageQueue.Clear();
   foreach (HttpMessage message in messages) {
     messageQueue.Enqueue(message);
   }
   BeforeSendResponse += callback;
 }
 /// <summary>
 /// Overloaded constructor.
 /// </summary>
 /// <param name="mockMessages">The list of HTTP messages to be mocked.
 /// </param>
 /// <param name="expectedOutput">Expected output from the code example.
 /// </param>
 public ExamplesMockData(HttpMessage[] mockMessages, string expectedOutput) {
   this.mockMessages = mockMessages;
   this.expectedOutput = expectedOutput;
 }