Hi Guys,
I do have a component that executes WebServices using reflection. The method has three parameters, the Web Service name and the Soap Action and the method arguments,
then using reflection, it loads and execute the soap action using MethodInfo class and the Invoke method.
I would like to mock the Invoke routine to return a SOAP envelop, note that the imput parameters are dinamyc. It means that the parameter arguments are not static it depents on the WebMethod.
How can I mock the Invoke method from System.Reflection.MethodBase.Invoke?