public async Task ForwardEventsToRouting_ShouldAddEventHandlers() { var source = new TestSource(); _routingServiceMock .Setup(x => x.RouteEventAsync(It.IsAny <PipelineEvent>(), _eventsScopeMock.Object)) .Returns(Task.CompletedTask) .Verifiable(); _forwardingService.ForwardEventsToRouting( _sourceModel, source, _eventsScopeMock.Object ); await source.RaiseEvents(); Assert.That(_routingServiceMock.Invocations, Has.Exactly(2).Items); }