yapep_base
yapep_base copied to clipboard
Make Storage Factory mockable
Storage Factory is a simple static class which makes it impossible to mock.
I agree, probably best to move it in the DI container, and make the methods non static.
Before even doing it, please give an example about the DI solution you mentioned before (when we spoke)