Level 9
Show us your code.
In general, avoid static methods.
If you're having trouble testing, you're using static methods incorrectly.
If I were to use DI to get an instance of a Service Provider (in a Controller), but then call static methods on it, can those be intercepted when mocked in unit tests? My guess is still no.
I'm sure a simple question, I'm just not in a position to test this out right now.
Thanks.
Please or to participate in this conversation.