public void BeforeAll() { var container = Platform.Setup.CreateContainer(); Assert.True(container.TryResolve(out _persistenceService), "PersistenceService not found"); Assert.True(container.TryResolve(out _networkService), "SafeNetworkService not found"); _persistenceService.Init(); _loader = new LocationsLoader(_persistenceService, _networkService); }
public LocationsViewModel(IAnalyticsService analytics, LocationsLoader locationsLoader, Func<Location, LanguagesViewModel> languageFactory, INavigator navigator) :base(analytics) { Title = "Select a Location"; Description = "Where do you live?"; _navigator = navigator; _navigator.HideToolbar(this); _languageFactory = languageFactory; _locationsLoader = locationsLoader; ExecuteLoadLocations(); }