I create a MOQ object
pass it to my class
call it and pass in an object.
How can I get access to this object to see if the right properties are set?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I’m reading your question correctly you seem to have a situation like this?
In which case you can assert upon the arguments passed to a Mocked interface using the It.Is method that accepts a predicate: