I'm using RIA Services authentication in a Silverlight app and it works great. Now I want to add unit tests using Moq framework: http://code.google.com/p/moq/
The problem I'm having is that I can't simulate none of the methods exposed by WebContext.Current.Authentication, since I can't return custom values for the mocked methods. For example, I can't simulate a successful login since I can't set a value for LoadUserOperation.IsComplete because that property doesn't have a public setter. The same happens with all the returned structures: they are readonly!
Is there a way I can simulate the authentication operations and therefore test the login in my app?
Thanks in advance.