I have the following
var objSet = new DynamicMock(typeof(IObjectSet<Nationality>));
objSet.ExpectAndReturn("GetAll", new List<Nationality>
{
new Nationality
{
//obj init here
},
new Nationality
{
//obj init here
}
}.AsQueryable());
which works just fine (I can call blah.GetAll() and I get the expected list back).
What I'd like to do (if possible?) is tell another DynamicMock to expect a method with the following signature
obj.CreateObjectSet<RandomCustomType>()
But I am unsure of how to include/configure the call to expect the '<Type>
'.