Using RhinoMocks - how can I say "whenever some function is called from now on - it should return some value".
I'd like to say something like this:
fakeCalculator.WhenCalled(factory => factory.AddNumbers(1, 2)).Return(3);
And then - when the AddNumbers function is called with 1 and 2 - it will return 3. I.e. I want to define this ahead, and then trigger the function. The reason is that I depend on this behavior for my mock which is injected into another class - which will again call the AddNumbers function.