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()); }
public async Task OnEventStreamUpdated_WhenProcessingFailed_CommitConsumedStreamVersion( [Frozen] Mock <IEventStreamConsumer> consumerMock, EventConsumingNotificationListenerStub listener, EventStreamUpdated notification) { await listener.On(notification); consumerMock.Verify(self => self.CommitProcessedStreamVersionAsync(true)); }