コード例 #1
0
        void CreateManagePackagesViewModel()
        {
            CreateRegisteredPackageRepositories();
            CreateSolution();
            ThreadSafePackageManagementEvents packageManagementEvents = CreateThreadSafePackageManagementEvents();
            PackagesViewModels packagesViewModels = CreatePackagesViewModels(packageManagementEvents);

            managePackagesViewModel =
                new ManagePackagesViewModel(
                    packagesViewModels,
                    new ManagePackagesViewTitle(solution),
                    packageManagementEvents);
        }
コード例 #2
0
		void CreateManagePackagesViewModel()
		{
			CreateRegisteredPackageRepositories();
			CreateSolution();
			var packageManagementEvents = new ThreadSafePackageManagementEvents(PackageManagementServices.PackageManagementEvents);
			managePackagesViewModel = 
				new ManagePackagesViewModel(
					solution,
					registeredPackageRepositories,
					packageManagementEvents,
					PackageManagementServices.PackageActionRunner,
					new LicenseAcceptanceService(),
					new PackageManagementTaskFactory());
		}
コード例 #3
0
		void CreateViewModel(FakePackageManagementSolution solution)
		{
			packageManagementEvents = new PackageManagementEvents();
			var threadSafeEvents = new ThreadSafePackageManagementEvents(packageManagementEvents, new FakePackageManagementWorkbench());
			CreateViewModel(fakeSolution, threadSafeEvents);
		}
コード例 #4
0
		void CreateEventsWithRealPackageManagementEvents()
		{
			unsafeEvents = new PackageManagementEvents();
			fakeWorkbench = new FakePackageManagementWorkbench();
			threadSafeEvents = new ThreadSafePackageManagementEvents(unsafeEvents, fakeWorkbench);
		}
コード例 #5
0
		void CreateEvents()
		{
			fakeEvents = new FakePackageManagementEvents();
			fakeWorkbench = new FakePackageManagementWorkbench();
			threadSafeEvents = new ThreadSafePackageManagementEvents(fakeEvents, fakeWorkbench);
		}
コード例 #6
0
		void CreateEvents ()
		{
			isGuiSyncDispatchCalled = false;
			unsafeEvents = new PackageManagementEvents ();
			threadSafeEvents = new ThreadSafePackageManagementEvents (unsafeEvents, RunGuiSyncDispatch);
		}