I need to create a mock instance of a given DB, whose interface is a generic func<T>(param1, param2,...)
Thing is, I want to give a concrete answer for certain values and a certain value of T.
How can I achieve that? (I need a real regular class implementing that interface, and not an NSubstitute\Mock class)
I tried creating two functions, one with a generic signature, and one with a concrete signature, but the compiler doesn't seem to recognize it is an implementation of the same interface function)
public interface IManager
{
T func<T>(string parameter);
}