I have some legacy code that accesses our database. I'd like to create an interface for each one of these classes for IoC/DI in unit testing.
All of the methods in these classes are static.
When I try to "extract an interface" via VisualStudio, it fails and says, "Could not extract an interface: The type does not contain any member that can be extracted to an interface".
There are some links that explain why interfaces shouldn't have static methods here and here.
This restriction appears to be mostly in support of polymorphism ... which I don't really care about right now and these classes don't really inherit from anything (other than Object).
So how do I use IoC to get an object I can pull data from?
I'd rather not make instance methods since instances increase the working set.