How to mock RIA service

Is it possible to mock the methods provided by the RIA services?

I would like to test my Silverlight application without a server connection ...

I see the following approach:

  • create a separate interface;
  • add it to the "base classes" for my RiaService;
  • define each auto-generated RIA method in this interface;
  • so that my "functionality" does not depend on RiaService, but on the interface that is implemented using RiaService.

But for this case, I see a problem: how to save my interface in automatically generated files?

ANY thoughts are welcome.

+3
source share
1 answer

( ) ...

, / !

+4

Source: https://habr.com/ru/post/1738794/


All Articles