public override Control CreatePanelWidget()
		{
			var settings = SettingsLoader.LoadDefaultSettings (reportError: true);
			var repositoryProvider = SourceRepositoryProviderFactory.CreateSourceRepositoryProvider (settings);
			viewModel = new RegisteredPackageSourcesViewModel (repositoryProvider);
			viewModel.Load ();
			
			packageSourcesWidget = new PackageSourcesWidget (viewModel);
			return packageSourcesWidget;
		}
        public override Control CreatePanelWidget()
        {
            var settings           = SettingsLoader.LoadDefaultSettings(reportError: true);
            var repositoryProvider = SourceRepositoryProviderFactory.CreateSourceRepositoryProvider(settings);

            viewModel = new RegisteredPackageSourcesViewModel(repositoryProvider);
            viewModel.Load();

            packageSourcesWidget = new PackageSourcesWidget(viewModel);
            return(packageSourcesWidget);
        }
        public void Load_OptionsHasOneRegisteredPackageSource_ViewModelHasOnePackageSourceViewModel()
        {
            CreateViewModelWithOnePackageSource();
            viewModel.Load();

            Assert.AreEqual(1, viewModel.PackageSourceViewModels.Count);
        }