public JitneySubscriptionsTest()
        {
            this.handlerRegistry        = A.Fake <AbstractHandlerRegistry>();
            this.handlerInvocationCache = new HandlerInvocationCache();

            this.testee = new JitneySubscriptions(this.handlerRegistry, this.handlerInvocationCache);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of <see cref="JitneySubscriptions"/>
 /// </summary>
 /// <param name="handlerRegistry">Dependency injection for <see cref="AbstractHandlerRegistry"/></param>
 /// <param name="handlerInvocationCache">Dependency injection for <see cref="IHandlerInvocationCache"/></param>
 public JitneySubscriptions(
     AbstractHandlerRegistry handlerRegistry,
     IHandlerInvocationCache handlerInvocationCache)
 {
     this.handlerRegistry        = handlerRegistry;
     this.handlerInvocationCache = handlerInvocationCache;
     this.commandSubscriptions   = new List <Subscription>();
     this.eventSubscriptions     = new List <Subscription>();
     this.eventTypes             = new List <Type>();
 }
        /// <summary>
        /// Creates a new instance of <see cref="AbstractJitneyConfiguration"/>
        /// </summary>
        /// <param name="handlerRegistry">Dependency injection for <see cref="AbstractHandlerRegistry"/></param>
        protected AbstractJitneyConfiguration(AbstractHandlerRegistry handlerRegistry)
        {
            this.configurationItems  = new Dictionary <string, object>();
            this.contractMap         = new Dictionary <Type, EndpointAddress>();
            this.jitneySubscriptions = new JitneySubscriptions(handlerRegistry, new HandlerInvocationCache());

            this.incommingEnvelopeSteps = new List <IncommingEnvelopeStep>();
            this.incommingMessageSteps  = new List <IncommingMessageStep>();
            this.outgoingMessageSteps   = new List <OutgoingMessageStep>();
            this.outgoingEnvelopeSteps  = new List <OutgoingEnvelopeStep>();

            this.subscriptionStore = new InMemorySubscriptionStore();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of <see cref="AbstractIoCContainerJitneyConfiguration"/>
 /// </summary>
 /// <param name="handlerRegistry">Dependency injection for <see cref="AbstractHandlerRegistry"/></param>
 protected AbstractIoCContainerJitneyConfiguration(AbstractHandlerRegistry handlerRegistry)
     : base(handlerRegistry)
 {
 }
 public JitneyConfiguration(AbstractHandlerRegistry handlerRegistry, IContainer container)
     : base(handlerRegistry)
 {
     this.container = container;
 }