/// <summary>
 ///   The on response received.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 /// <param name = "response">
 ///   The response.
 /// </param>
 private static void OnResponseReceived(TestClient client, OperationResponse response)
 {
     Action<TestClient, OperationResponse> received = ResponseReceived;
     if (received != null)
     {
         received(client, response);
     }
 }
 /// <summary>
 ///   invokes <see cref = "Disconnected" />.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 private static void OnDisonnected(TestClient client)
 {
     Action<TestClient> handler = Disonnected;
     if (handler != null)
     {
         handler(client);
     }
 }
 /// <summary>
 ///   The on event received.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 /// <param name = "data">
 ///   The data.
 /// </param>
 private static void OnEventReceived(TestClient client, EventData data)
 {
     Action<TestClient, EventData> received = EventReceived;
     if (received != null)
     {
         received(client, data);
     }
 }
 /// <summary>
 ///   The on connected.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 private static void OnConnected(TestClient client)
 {
     Action<TestClient> connected = Connected;
     if (connected != null)
     {
         connected(client);
     }
 }