I really think this should use dependency injection. Right now, class FizzBuzz constructs its own dependencies, you should be passing them into the constructor as interfaces.
This will greatly assist if the implementation detail of classes like IIntegerReturner change in future.
I really think this should use dependency injection. Right now, class FizzBuzz constructs its own dependencies, you should be passing them into the constructor as interfaces.
This will greatly assist if the implementation detail of classes like IIntegerReturner change in future.