March 2018
Intermediate to advanced
192 pages
4h 4m
English
Using the API and data service we created, we can now update the ViewModels in the app to use live data instead of the local, hardcoded data they currently use. We will continue to leverage the patterns we put in place in previous chapters to ensure that our ViewModels remain testable and do not have any specific dependencies on the Azure API, or even the HTTP communication logic. To update the ViewModels, perform the following steps:
public class TripLogCoreModule : NinjectModule { public override void Load() { // ViewModels Bind<MainViewModel>().ToSelf(); Bind<DetailViewModel>().ToSelf(); ...