void CreateManagePackagesViewModel() { CreateRegisteredPackageRepositories(); CreateSolution(); ThreadSafePackageManagementEvents packageManagementEvents = CreateThreadSafePackageManagementEvents(); PackagesViewModels packagesViewModels = CreatePackagesViewModels(packageManagementEvents); managePackagesViewModel = new ManagePackagesViewModel( packagesViewModels, new ManagePackagesViewTitle(solution), packageManagementEvents); }
void CreateManagePackagesViewModel() { CreateRegisteredPackageRepositories(); CreateSolution(); var packageManagementEvents = new ThreadSafePackageManagementEvents(PackageManagementServices.PackageManagementEvents); managePackagesViewModel = new ManagePackagesViewModel( solution, registeredPackageRepositories, packageManagementEvents, PackageManagementServices.PackageActionRunner, new LicenseAcceptanceService(), new PackageManagementTaskFactory()); }
void CreateViewModel(FakePackageManagementSolution solution) { packageManagementEvents = new PackageManagementEvents(); var threadSafeEvents = new ThreadSafePackageManagementEvents(packageManagementEvents, new FakePackageManagementWorkbench()); CreateViewModel(fakeSolution, threadSafeEvents); }
void CreateEventsWithRealPackageManagementEvents() { unsafeEvents = new PackageManagementEvents(); fakeWorkbench = new FakePackageManagementWorkbench(); threadSafeEvents = new ThreadSafePackageManagementEvents(unsafeEvents, fakeWorkbench); }
void CreateEvents() { fakeEvents = new FakePackageManagementEvents(); fakeWorkbench = new FakePackageManagementWorkbench(); threadSafeEvents = new ThreadSafePackageManagementEvents(fakeEvents, fakeWorkbench); }
void CreateEvents () { isGuiSyncDispatchCalled = false; unsafeEvents = new PackageManagementEvents (); threadSafeEvents = new ThreadSafePackageManagementEvents (unsafeEvents, RunGuiSyncDispatch); }