I have a 3rd party C++ DLL that I call from C#.
The methods are static.
I want to abstract it out to do some unit testing so I created an interface with the
Beginning with C# 8.0, an interface may define a default implementation for members. It may also define static members in order to provide a single implementation for common functionality.
interface (C# Reference)
E.g.
public interface IGetSomething
{
public static string Something = "something";
}
var something = IGetSomething.Something;