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

            this.testee = new JitneySubscriptions(this.handlerRegistry, this.handlerInvocationCache);
        }
Esempio 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>();
 }