FizzBuzzEnterpriseEdition-CSharp icon indicating copy to clipboard operation
FizzBuzzEnterpriseEdition-CSharp copied to clipboard

Dependency injection

Open gavinBurtonStoreFeeder opened this issue 3 years ago • 1 comments

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.

gavinBurtonStoreFeeder avatar Dec 01 '21 11:12 gavinBurtonStoreFeeder

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

denyeo avatar Jun 10 '23 10:06 denyeo