jongeorge1 / FizzBuzzEnterpriseEdition-CSharp

FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by a serious businessman for serious business purposes. It's a port of the original Java https://github.com/Mikkeren/FizzBuzzEnterpriseEdition
77 stars 2 forks source link

Dependency injection #2

Open gavinBurtonStoreFeeder opened 2 years ago

gavinBurtonStoreFeeder commented 2 years ago

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.

denyeo commented 1 year ago

I'm shocked that an enterprise project would not be using dependency injection. Factories are used, but not DI? Embarrassing!