public void Dispose() { AvailablePackagesViewModel.Dispose(); //InstalledPackagesViewModel.Dispose(); //RecentPackagesViewModel.Dispose(); //UpdatedPackagesViewModel.Dispose(); }
public void ReadPackages() { AvailablePackagesViewModel.ReadPackages(); //InstalledPackagesViewModel.ReadPackages(); //UpdatedPackagesViewModel.ReadPackages(); //RecentPackagesViewModel.ReadPackages(); }
void CreateViewModel (FakePackageManagementSolution solution) { viewModelParent = CreateViewModelParent (); viewModel = new TestablePackageViewModel (viewModelParent, solution); fakePackage = viewModel.FakePackage; this.fakeSolution = solution; packageManagementEvents = viewModel.PackageManagementEvents; fakeLogger = viewModel.FakeLogger; fakeUninstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeUninstallPackageAction; }
void CreateViewModel (FakeRegisteredPackageRepositories registeredPackageRepositories) { taskFactory = new FakeTaskFactory (); var packageViewModelFactory = new FakePackageViewModelFactory (); recentPackageRepository = new FakeRecentPackageRepository (); viewModel = new AvailablePackagesViewModel ( registeredPackageRepositories, recentPackageRepository, packageViewModelFactory, taskFactory); }
void CreateViewModel(FakeRegisteredPackageRepositories registeredPackageRepositories) { taskFactory = new FakeTaskFactory(); var packageViewModelFactory = new FakePackageViewModelFactory(); packageManagementEvents = new PackageManagementEvents(); viewModel = new AvailablePackagesViewModel( new FakePackageManagementSolution(), packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); }
public PackagesViewModels( IPackageManagementSolution solution, IRegisteredPackageRepositories registeredPackageRepositories, IThreadSafePackageManagementEvents packageManagementEvents, IPackageActionRunner actionRunner, ITaskFactory taskFactory) { var packageViewModelFactory = new PackageViewModelFactory(solution, packageManagementEvents, actionRunner); var updatedPackageViewModelFactory = new UpdatedPackageViewModelFactory(packageViewModelFactory); AvailablePackagesViewModel = new AvailablePackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); InstalledPackagesViewModel = new InstalledPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); UpdatedPackagesViewModel = new UpdatedPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory); RecentPackagesViewModel = new RecentPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); }
public PackagesViewModels( IPackageManagementSolution solution, IRegisteredPackageRepositories registeredPackageRepositories, IThreadSafePackageManagementEvents packageManagementEvents, IPackageActionRunner actionRunner, ITaskFactory taskFactory) { var packageViewModelFactory = new PackageViewModelFactory(solution, packageManagementEvents, actionRunner); var updatedPackageViewModelFactory = new UpdatedPackageViewModelFactory(packageViewModelFactory); AvailablePackagesViewModel = new AvailablePackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); InstalledPackagesViewModel = new InstalledPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); UpdatedPackagesViewModel = new UpdatedPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory); RecentPackagesViewModel = new RecentPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); }
public AddPackageReferenceViewModel( IPackageManagementService packageManagementService, ITaskFactory taskFactory) { this.packageManagementService = packageManagementService; this.packageManagementService.OutputMessagesView.Clear(); availablePackagesViewModel = new AvailablePackagesViewModel(packageManagementService, this, taskFactory); installedPackagesViewModel = new InstalledPackagesViewModel(packageManagementService, this, taskFactory); packageUpdatesViewModel = new PackageUpdatesViewModel(packageManagementService, this, taskFactory); recentPackagesViewModel = new RecentPackagesViewModel(packageManagementService, this, taskFactory); availablePackagesViewModel.ReadPackages(); installedPackagesViewModel.ReadPackages(); packageUpdatesViewModel.ReadPackages(); recentPackagesViewModel.ReadPackages(); }
void CreateViewModel ( FakeRegisteredPackageRepositories registeredPackageRepositories, FakePackageManagementSolution solution) { taskFactory = new FakeTaskFactory (); var packageViewModelFactory = new FakePackageViewModelFactory (); recentPackageRepository = new FakeRecentPackageRepository (); viewModel = new AvailablePackagesViewModel ( solution, registeredPackageRepositories, recentPackageRepository, packageViewModelFactory, taskFactory); }
void CreateViewModel(IPackageManagementService packageManagementService) { taskFactory = new FakeTaskFactory(); var messageReporter = new FakeMessageReporter(); viewModel = new AvailablePackagesViewModel(packageManagementService, messageReporter, taskFactory); }