I tried
pm.sd.Pos = posmock.Object,
but then when I run the test I get this error:
-----------
System.ArgumentException : Can not instantiate proxy of class:
SharpTradingvs.Position.
Could not find a constructor that would match given arguments:
Moq.Mock`1[SharpTradingvs.IOrderHandler]
SharpTradingvs.SymData
System.Double
---------
IOrderHandler is passed to the Position constructor, so it looks like
moq is trying to create a new Position object, instead of using the
posmock object.
Kurt.
Parameter name: constructorArguments - c:\SharpTradingSD\Entry-Test.cs:
59
On Apr 21, 10:54 am, John Thornborrow <
thornborrow.j...@gmail.com>
wrote: