I'm trying to stub this:
public T GetCommand<T>() where T : ICommand, new()
I'm using Moq (C#), and my code looks like this:
_mockedBusinessFactory.Setup(x => x.GetCommand<ICommand>());
But there is a question: how to deal with the new() constraint?
Any idea?