public ViewModelLocator()
        {
            MainViewModel = new MainViewModel();
            InfoViewModel = new InfoViewModel();
            AppsViewModel = new AppsViewModel();

            ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
            SimpleIoc.Default.Register<MainViewModel>();
            SimpleIoc.Default.Register<InfoViewModel>();
            SimpleIoc.Default.Register<AppsViewModel>();
            Registered = true;
        }
 public void AppsModelIsAvailableWhenPopulated()
 {
     AppsViewModel appsViewModel = new AppsViewModel();
     appsViewModel.GetApps();
     Assert.IsTrue(appsViewModel.IsModelAvailable);
 }
 public void AppsModelHasListObject()
 {
     AppsViewModel appsViewModel = new AppsViewModel();
     Assert.IsInstanceOfType(appsViewModel.Apps, typeof(List<AppModel>));
 }