Hi Jay
First to the formatting question:
Use the 'code' button before your posted code
and hit the 'close tags' link after the code ends. (both of them below the 'Subject' text box)
I edited your post so you can see it.
Just hit edit and look at the small change I made.
I think that the problem is that the constructor is mocked by default.
try using the Recorder.CallOriginal() method
Using Recorder As New RecordExpectations
Dim OrderDetailsMock As New API.Base.OrderInfo.OrderDetails
Recorder.CallOriginal()
Dim OrderDetailMock As New API.Base.OrderInfo.OrderDetail
Recorder.ExpectAndReturn(OrderDetailsMock.AddNew, OrderDetailMock)
Recorder.ExpectAndReturn(TestSubject.Details, OrderDetailsMock)
OrderDetailMock.SetPropertyAccess(False)
End Using
Hope it helps.