Join Slack
Powered by
The main reason is testing. If you want to test yo...
# android-architecture
f
Francisco Javier Ruiz Rodriguez
01/23/2020, 12:25 PM
The main reason is testing. If you want to test your
MainViewActVM
, with the second approach there is no way to mock your
AppRepository
, meanwhile with the first one, you can inject the
AppRepository
you want
Open in Slack
Previous
Next