I have a method on an interface:
string GetUserDetails(string whatever);
I want to mock this with MOQ, so that it returns whatever the method returns i.e user details - something like:
_mock.Setup( theObject => theObject.GetUserDetails( It.IsAny<string>( ) ) )
.Returns( [object return by GetUserDetails method] ) ;
Any ideas?