public RetrySubscriptionTests()
        {
            A.CallTo(() => eventStore.CreateSubscription(A <IEventSubscriber> .Ignored, A <string> .Ignored, A <string> .Ignored)).Returns(eventSubscription);

            sut = new RetrySubscription(eventStore, eventSubscriber, streamFilter, null)
            {
                ReconnectWaitMs = 50
            };

            sutSubscriber = sut;
        }
Esempio n. 2
0
        public RetrySubscriptionTests()
        {
            A.CallTo(() => eventStore.CreateSubscription(A <IEventSubscriber> ._, A <string> ._, A <string> ._))
            .Returns(eventSubscription);

            A.CallTo(() => eventSubscription.Sender)
            .Returns(eventSubscription);

            sut = new RetrySubscription(eventSubscriber, s => eventStore.CreateSubscription(s))
            {
                ReconnectWaitMs = 50
            };

            sutSubscriber = sut;
        }