stryker-net
stryker-net copied to clipboard
Consider using an ioc container to ease readability and testability
Describe the bug
When debugging stryker i noticed multiples instanciation of the GitInfoProvider
. Also so many ctor args are declared with default null values to allow unit testing.
Expected behavior Using an ioc container would allow to remove default null parameters in ctor parameters, newing implementation in ctor body and have finegrained control over object lifetimes
Hi! This is legacy from when stryker was not yet such a big project. You are right that we should probably revisit and decide if it's time for dependency injection.
Hi! This is legacy from when stryker was not yet such a bug project. You are right that we should probably revisit and decide if it's time for dependency injection.
I think you meant big project ;)
Potato potato :)