static PackageManagementServices() { options = new PackageManagementOptions(); packageRepositoryCache = new PackageRepositoryCache(options.PackageSources, options.RecentPackages); registeredPackageRepositories = new RegisteredPackageRepositories(packageRepositoryCache, options); projectTemplatePackageSources = new RegisteredProjectTemplatePackageSources(); projectTemplatePackageRepositoryCache = new ProjectTemplatePackageRepositoryCache(packageRepositoryCache, projectTemplatePackageSources); outputMessagesView = new PackageManagementOutputMessagesView(packageManagementEvents); projectBrowserRefresher = new ProjectBrowserRefresher(projectService, packageManagementEvents); solution = new PackageManagementSolution(registeredPackageRepositories, packageManagementEvents); consoleHostProvider = new PackageManagementConsoleHostProvider(solution, registeredPackageRepositories); runPackageInitializationScripts = new RunPackageInitializationScriptsOnSolutionOpen(projectService); resetPowerShellWorkingDirectory = new ResetPowerShellWorkingDirectoryOnSolutionClosed(projectService, ConsoleHost); var consolePackageActionRunner = new ConsolePackageActionRunner(ConsoleHost, packageActionsToRun); packageActionRunner = new PackageActionRunner(consolePackageActionRunner, packageManagementEvents); }
void CreateProjectBrowserRefresher() { fakeProjectService = new FakePackageManagementProjectService(); packageManagementEvents = new PackageManagementEvents(); projectBrowserRefresher = new ProjectBrowserRefresher(fakeProjectService, packageManagementEvents); }