From: Standa K.
Sent: February 22, 2013 1:56 PM
To: moq...@googlegroups.com Subject: [Moq] Mock.Of and function parameters in setup
Hello,
just today I discovered this Mock.Of<Type>() style of creating mocks when I was searching for a fluent Moq interface (that is, one which would allow me to create the mock
and specify its behavior in one step unlike the Setup() method I've been using so far).
However, I can't figure out how to specify a behavior of a mock's method call which depends on a parameter.
I've read through the "
Mock.Of - how to specify behavior?" thread, but all of the examples given there were constant functions (their output didn't depend on the actual parameters passed).
Is there way to use parameters when using Mock.Of?
--
--
Post: moq...@googlegroups.com
Unsubscribe: moqdisc-u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Moq Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moqdisc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.