How to mock a RIA service
Posted
by Budda
on Stack Overflow
See other posts from Stack Overflow
or by Budda
Published on 2010-03-27T17:21:28Z
Indexed on
2010/03/27
17:33 UTC
Read the original article
Hit count: 419
Is there any ability to mock methods that are provided with RIA Services?
I would like to test my Silverlight App without communication to the server side...
I see a following approach:
- create a separate interface;
- add it to "base classes" for my RiaService;
- define each autogenerated RIA-method in this interface;
- insert dependency so that my "functionality" will depend not from the RiaService, but from the interface that is implemented with RiaService.
But for this case I see a problem: how to keep my interface in the auto-generated files?
ANy thoughts are welcome.
© Stack Overflow or respective owner