MOQ and readonly properties

Skip to first unread message

Gordon Johnston

Oct 30, 2015, 2:46:25 PM10/30/15
to Moq Discussions
I am trying to MOQ a CRM Plugin.

The plugin receives a number of properties and I want to ensure that the code flows into the correct IF statements depending on what type and state the record is that triggered the workflow. 

I am new to MOQ so it may be that I shouldn't be doing this or that I need another method to generate the incoming data and parameters.

I suppose my question is: Is it possible to force in a value of a readonly property?  I am trying the SetupProperty method.

As mentioned I have no control over the property.
Reply all
Reply to author
0 new messages