First off, the VB syntax equivalent to WhenCalled() would be:
Using TheseCalls.WillReturn(fakeService)
factory.CreateInstance(Of HndDebtorsService)(null)
End Using
Can you post the code (or a simplified version) of the HndDebtorsService? I'd like to get a local recreation going.
Thanks,
Doron
Typemock Support