mock service using RL
Is there anyway we can mock service calls using RL as we do with SWIZ, please answer for both RL1 & RL2.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by creynders on 24 Feb, 2013 12:51 PM
Yes, by creating a mock service implementation. So for instance, you'd create a
ILoginService
interface and aMockLoginService
class that implements the interface. Then you map the MockLoginService to the ILoginService in the injector:When you're ready with the real implementation of your LoginService all you'll need to do is modify the above mapping.
2 Posted by parikshit.dutta on 25 Feb, 2013 07:52 AM
Hey creynders, one more friend in list :) Nice having your tips. Perfect!
Thanks.
Ondina D.F. closed this discussion on 26 Feb, 2013 09:39 AM.