Is there a way to setup a Moq Mock using a string parameter instead of an expression? You can do this using the protected extensions for a protected function, but it throws an exception if public. For example, here is how you might setup a protected void function with Moq:
myMock.Protected().Setup("MyProtectedFunction");
I want to be able to do the same thing with a public function. If I can do this I already have some reflection code that can return the names of all of the functions I need to mock, and I can hopeful build on this to avoid having to setup many functions on a huge factory class.