public async Task SynchronousSubscribersGetCalled() { // Arrange var subscriberMock = ArrangeSynchronousSubscriber <ThingyPingEvent>(); // Act await Sut.DispatchToSynchronousSubscribersAsync(new[] { A <DomainEvent <ThingyAggregate, ThingyId, ThingyPingEvent> >() }, CancellationToken.None).ConfigureAwait(false); // Assert subscriberMock.Verify(s => s.HandleAsync(It.IsAny <IDomainEvent <ThingyAggregate, ThingyId, ThingyPingEvent> >(), It.IsAny <CancellationToken>()), Times.Once); _logMock.VerifyNoProblems(); }