コード例 #1
0
        public async Task OnEventStreamUpdated_WhenProcessingCompleted_DoesNotDeferNotification(
            [Frozen] Mock <INotificationListenerSubscription> subscriptionMock,
            EventConsumingNotificationListenerStub listener,
            EventStreamUpdated notification)
        {
            await listener.On(notification);

            subscriptionMock.Verify(self => self.RetryNotificationProcessingAsync(notification), Times.Never());
        }
コード例 #2
0
        public async Task OnEventStreamUpdated_WhenProcessingFailed_CommitConsumedStreamVersion(
            [Frozen] Mock <IEventStreamConsumer> consumerMock,
            EventConsumingNotificationListenerStub listener,
            EventStreamUpdated notification)
        {
            await listener.On(notification);

            consumerMock.Verify(self => self.CommitProcessedStreamVersionAsync(true));
        }