If you access the web services through some kind of a wrapper (like
the ones .NET generates), then as long as they're virtual, you can
mock them.  If they aren't virtual (and not part of an interface
implementation), then you may want to create an interface that
represents your webservice calls.  Then mock/stub out the interface
calls for testing.  For production, create a class that implements the
interfaces and forwards all the calls to the class with non-virtual
methods.

---
Patrick Steele
http://weblogs.asp.net/psteele



On Wed, Apr 28, 2010 at 12:01 PM, Seema <[email protected]> wrote:
> I have a question around using Rhino Mocks for testing web services. I
> have used Rhino mocks to mock calls from within a class. Can it be
> used similarly for mocking calls from within a web service? Sorry, I
> am new to testing web services & any insight will be greatly
> appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Rhino.Mocks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rhinomocks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to