Hi,
"Get" is an extenstion method; it cannot be mocked using RhinoMocks; only virtual methods can be mocked. The ArgumentNullException is caused by "Get" in turn invoking the virtual method "Resolve", which is caught by RhinoMocks and made to return "null". This is then passed to Enumerable.Cast, which throws the ArgumentNullException..
The correct way of solving this is by stubbing the virtual methods, i.e., "Resolve" (and before that, "CreateRequest"), rather than "Get".
(Moq, BTW, also cannot mock extension methods. However, Moq might return a recursive stub rather than null when "Get" calls "Resolve", which prevents the ArgumentNullException from being thrown. I don't think RhinoMocks can be configured to return recursive stubs rather than null results on method calls.)
Best regards,
Fabian