3 Answers, 1 is accepted
Yes, you can mock properties using MockingContainer. You can find additional information here http://www.telerik.com/help/justmock/properties_t_telerik_justmock_container_mockingcontainer_1.html .
Here is an example of automocking where a mocked property (Balance) is used
Don't hesitate to contact us if you have other questions.Regards,
This capability is clear.
My question was could I mock the interface if it's not a parameter of the ctor?
I am sorry that I've misunderstood you.
The scenario you are asking me is not possible at the moment. For now we support only .ctor injection.
We are working on a new feature, which will enable you to mock interface properties of future instances. This feature is scheduled for one of next internal builds of JustMock.
Thank you for your time and cooperation.