/// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="destination"></param>
        /// 
        public MessageSenderEventChannel(string destination)
        {
            if (String.IsNullOrEmpty(destination))
            {
                throw new EventChannelException(string.Format("Invalid destination: {0}", destination));
            }

            this.destination = destination;
            sender = new MessageSenderGateway(destination, new Type[] { typeof(CanonicalEvent) });
        }
 public void TestSendXmlDocumentMessageWithDestinationAndTargetTypes()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(XmlDocumentMessage);
     gateway.Send(new MockMessage(), XmlDocumentMessageWithDestinationAndTargetTypes);
 }
 public void TestSendXmlDocumentMessage()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(XmlDocumentMessage);
     gateway.Send(new MockMessage());
 }
 public void TestSendStringMessageWithDestinationAndTargetTypes()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(StringMessage);
     gateway.Send(new MockMessage(), StringMessageWithDestinationAndTargetTypes);
 }
 public void TestSendStringMessage()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(StringMessage);
     gateway.Send(new MockMessage());
 }
 public void TestSendObjectMessageWithDestination()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(ObjectMessage);
     gateway.Send(new MockMessage(), ObjectMessageWithDestination);
 }
 public void TestSendObjectMessage()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(ObjectMessage);
     gateway.Send(new MockMessage());
 }
 public void TestConstructorWithDestinationAndTypes()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(BaseDestination, targetTypes);
 }
 public void TestConstructorWithDestination()
 {
     IMessageSenderGateway gateway = new MessageSenderGateway(BaseDestination);
 }