Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MockAdapterHandlerBase"/> class
 /// </summary>
 /// <param name="connection">The mock adapter connection instance</param>
 /// <param name="metadataLookup">The instance of the metadata lookup object</param>
 protected MockAdapterHandlerBase(
     MockAdapterConnection connection,
     MetadataLookup metadataLookup)
 {
     this.connection     = connection;
     this.metadataLookup = metadataLookup;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="MockAdapterInboundHandler"/> class
        /// </summary>
        /// <param name="connection">The connection object for the inbound handler</param>
        /// <param name="metadataLookup">The metadata lookup object for the handler</param>
        public MockAdapterInboundHandler(
            MockAdapterConnection connection,
            MetadataLookup metadataLookup)
            : base(connection, metadataLookup)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            this.propertiesToPromote = connection.ConnectionFactory.Adapter.PromotedProperties;
            this.propertyParser      = new AdapterPropertyParser();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MockAdapterOutboundHandler"/> class
 /// </summary>
 /// <param name="connection">The connection object for the outbound handler</param>
 /// <param name="metadataLookup">The metadata lookup object for the outbound handler</param>
 public MockAdapterOutboundHandler(
     MockAdapterConnection connection,
     MetadataLookup metadataLookup)
     : base(connection, metadataLookup)
 {
 }