public void ConstructorSetsProperties()
 {
     var message = new Response();
     var args = new CommunicationsEventArgs("action", message);
     Assert.AreEqual("action", args.Action);
     Assert.AreSame(message, args.Message);
 }
 /// <summary>
 /// Passes on the ResponseReceived event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void PassOnResponseReceived(object sender, CommunicationsEventArgs args)
 {
     FireResponseReceived(args.Action, args.Message as Response);
 }
 /// <summary>
 /// Passes on the ResponseReceived event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void PassOnResponseReceived(object sender, CommunicationsEventArgs args)
 {
     FireResponseReceived(args.Action, args.Message as Response);
 }
 /// <summary>
 /// Passes on the RequestSending event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void PassOnRequestSending(object sender, CommunicationsEventArgs args)
 {
     FireRequestSending(args.Action, args.Message as ServerRequest);
 }
 /// <summary>
 /// Passes on the RequestSending event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void PassOnRequestSending(object sender, CommunicationsEventArgs args)
 {
     FireRequestSending(args.Action, args.Message as ServerRequest);
 }