void CreateRunner() { fakeProjectService = new FakePackageManagementProjectService(); fakeConsoleHost = new FakePackageManagementConsoleHost(); fakeScriptingConsole = new FakeScriptingConsole(); fakeConsoleHost.ScriptingConsole = fakeScriptingConsole; scriptsConsole = new PackageInitializationScriptsConsole(fakeConsoleHost); fakeScriptsFactory = new FakePackageInitializationScriptsFactory(); runner = new RunPackageInitializationScriptsOnSolutionOpen(fakeProjectService, scriptsConsole, fakeScriptsFactory); }
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); }