/// <inheritdoc /> public void Run(FakeEntity entity, Action <FakeEntity> next) { _fakeService.DoubleNumber(entity); next?.Invoke(entity); }
/// <inheritdoc /> public int Run(FakeEntity entity, Func <FakeEntity, int> next) { _fakeService.DoubleNumber(entity); return(next?.Invoke(entity) ?? entity.Number); }