Archive by category: Xamarin TestingReturn
RSS
January 2017
Unit Testing with Xamarin.Forms DependencyService

Unit Testing with Xamarin.Forms DependencyService

0 ( 0 reviews)
Xamarin.Forms has it own DependencyService implemented, fairly easy to use and fast, so you don't need to implement another one. But it lacks constructor dependency injection. That makes hard to mock our services in unit tests, as the ViewModel is the responsible to resolve the dependencies internally. But there is a way to easily overcome this situation without loosing functionality.
[+] Read More