public EventAggregatorTestsBase() { MockEventSubscription = new Mock <IEventSubscription>(); AggregatorConfig = CreateConfiguration(); EventSubscriptionState = new EventSubscriptionStateDto(); MockEventSubscription.Setup(s => s.State).Returns(EventSubscriptionState); Aggregator = new EventAggregator(MockEventSubscription.Object, 1, AggregatorConfig); }
public EventAggregator(IEventSubscription subscription, long id, IEventAggregatorDto aggregatorConfiguration) : base(subscription, id) { Configuration = aggregatorConfiguration; }