Ejemplo n.º 1
0
 public ResetPowerShellWorkingDirectoryOnSolutionClosed(
     IPackageManagementProjectService projectService,
     IPackageManagementConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
     projectService.SolutionClosed += SolutionClosed;
 }
        public PackageManagementCmdlet(
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
        {
            this.consoleHost = consoleHost;
            this.terminatingError = terminatingError;
        }
 public PackageManagementConsoleViewModel(
     IPackageManagementProjectService projectService,
     IPackageManagementConsoleHost consoleHost)
 {
     this.projectService = projectService;
     this.consoleHost    = consoleHost;
 }
Ejemplo n.º 4
0
 public PackageManagementCmdlet(
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
 {
     this.consoleHost      = consoleHost;
     this.terminatingError = terminatingError;
 }
        public ResetPowerShellWorkingDirectoryOnSolutionClosed(
			IPackageManagementProjectService projectService,
			IPackageManagementConsoleHost consoleHost)
        {
            this.consoleHost = consoleHost;
            projectService.SolutionClosed += SolutionClosed;
        }
		public InvokeUpdateWorkingDirectoryCmdlet (
			IExtendedPackageManagementProjectService projectService,
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
			: base (consoleHost, terminatingError)
		{
			this.projectService = projectService;
		}
        void CreateConsoleHost()
        {
//			if (powerShellDetection.IsPowerShell2Installed()) {
            consoleHost = new PackageManagementConsoleHost(solution, registeredRepositories, packageEvents);
//			} else {
//				consoleHost = new PowerShellMissingConsoleHost();
//			}
        }
		public GetPackageCmdlet (
			IRegisteredPackageRepositories registeredPackageRepositories,
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
			: base (consoleHost, terminatingError)
		{
			this.registeredPackageRepositories = registeredPackageRepositories;
		}
        void CreateConsoleHost()
        {
//			if (powerShellDetection.IsPowerShell2Installed()) {
            consoleHost = new PackageManagementConsoleHost(packageEvents);
//			} else {
//				consoleHost = new PowerShellMissingConsoleHost();
//			}
        }
Ejemplo n.º 10
0
 public UpdatePackageCmdlet(
     IUpdatePackageActionsFactory updatePackageActionsFactory,
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
     this.updatePackageActionsFactory = updatePackageActionsFactory;
 }
		public InvokeProcessPackageActionsCmdlet(
			PackageActionsToRun actionsToRun,
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
			: base(consoleHost, terminatingError)
		{
			this.actionsToRun = actionsToRun;
		}
Ejemplo n.º 12
0
 public InvokeUpdateWorkingDirectoryCmdlet(
     IPackageManagementProjectService projectService,
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
     this.projectService = projectService;
 }
Ejemplo n.º 13
0
		public UpdatePackageCmdlet(
			IUpdatePackageActionsFactory updatePackageActionsFactory,
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
			: base(consoleHost, terminatingError)
		{
			this.updatePackageActionsFactory = updatePackageActionsFactory;
		}
 public InvokeProcessPackageActionsCmdlet(
     PackageActionsToRun actionsToRun,
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
     this.actionsToRun = actionsToRun;
 }
		void CreateConsoleHost()
		{
//			if (powerShellDetection.IsPowerShell2Installed()) {
		consoleHost = new PackageManagementConsoleHost (solution, registeredRepositories, packageEvents);
//			} else {
//				consoleHost = new PowerShellMissingConsoleHost();
//			}
		}
Ejemplo n.º 16
0
 public GetPackageCmdlet(
     IRegisteredPackageRepositories registeredPackageRepositories,
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
     this.registeredPackageRepositories = registeredPackageRepositories;
 }
Ejemplo n.º 17
0
 public PackageManagementConsoleViewModel(
     RegisteredPackageSources registeredPackageSources,
     IExtendedPackageManagementProjectService projectService,
     IPackageManagementConsoleHost consoleHost)
 {
     this.registeredPackageSources = registeredPackageSources;
     this.projectService           = projectService;
     this.consoleHost = consoleHost;
 }
        public void ConsoleHost_PowerShellIsNotInstalled_ReturnsPowerShellMissingConsoleHost()
        {
            CreateProvider();
            fakePowerShellDetection.IsPowerShell2InstalledReturnValue = false;

            IPackageManagementConsoleHost consoleHost = provider.ConsoleHost;

            Assert.IsInstanceOf(typeof(PowerShellMissingConsoleHost), consoleHost);
        }
Ejemplo n.º 19
0
 public ConsolePackageActionRunner(
     IPackageManagementConsoleHost consoleHost,
     PackageActionsToRun packageActionsToRun,
     IPackageManagementWorkbench workbench)
 {
     this.consoleHost         = consoleHost;
     this.packageActionsToRun = packageActionsToRun;
     this.workbench           = workbench;
 }
Ejemplo n.º 20
0
 public TestablePackageManagementConsoleViewModel(
     RegisteredPackageSources registeredPackageSources,
     IPackageManagementConsoleHost consoleHost,
     FakePackageManagementProjectService projectService)
     : base(registeredPackageSources, projectService, consoleHost)
 {
     this.RegisteredPackageSources = registeredPackageSources;
     this.FakeProjectService       = projectService;
 }
Ejemplo n.º 21
0
		public ConsolePackageActionRunner(
			IPackageManagementConsoleHost consoleHost,
			PackageActionsToRun packageActionsToRun,
			IPackageManagementWorkbench workbench)
		{
			this.consoleHost = consoleHost;
			this.packageActionsToRun = packageActionsToRun;
			this.workbench = workbench;
		}
		public TestablePackageManagementConsoleViewModel(
			RegisteredPackageSources registeredPackageSources,
			IPackageManagementConsoleHost consoleHost,
			FakePackageManagementProjectService projectService)
			: base(registeredPackageSources, projectService, consoleHost)
		{
			this.RegisteredPackageSources = registeredPackageSources;
			this.FakeProjectService = projectService;
		}
Ejemplo n.º 23
0
 public InvokeInitializePackagesCmdlet(
     IExtendedPackageManagementProjectService projectService,
     IPackageInitializationScriptsFactory scriptsFactory,
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
     this.projectService = projectService;
     this.scriptsFactory = scriptsFactory;
 }
		public InvokeInitializePackagesCmdlet(
			IPackageManagementProjectService projectService,
			IPackageInitializationScriptsFactory scriptsFactory,
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
			: base(consoleHost, terminatingError)
		{
			this.projectService = projectService;
			this.scriptsFactory = scriptsFactory;
		}
 void CreateConsoleHost()
 {
     if (DotNetCoreRuntime.IsInstalled)
     {
         consoleHost = new PackageManagementConsoleHost(packageEvents);
     }
     else
     {
         consoleHost = new DotNetCoreRuntimeMissingConsoleHost();
     }
 }
 void CreateConsoleHost()
 {
     if (IsSupportedDotNetCoreRuntimeInstalled())
     {
         consoleHost = new PackageManagementConsoleHost(packageEvents);
     }
     else
     {
         consoleHost = new DotNetCoreRuntimeMissingConsoleHost(RequiredDotNetCoreRuntimeVersion);
     }
 }
Ejemplo n.º 27
0
 public ComponentModel(IPackageManagementConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
 }
Ejemplo n.º 28
0
 public ComponentModel(IPackageManagementConsoleHost consoleHost, IPackageManagementSolution solution)
 {
     this.consoleHost = consoleHost;
     this.solution    = solution;
 }
Ejemplo n.º 29
0
 public TestablePackageManagementConsoleViewModel(
     IEnumerable <PackageSource> packageSources,
     IPackageManagementConsoleHost consoleHost)
     : this(new RegisteredPackageSources(packageSources), consoleHost, new FakePackageManagementProjectService())
 {
 }
Ejemplo n.º 30
0
 public ClearPackageManagementConsoleHostCommand(IPackageManagementConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
 }
 void CreateViewModel(IEnumerable<PackageSource> packageSources, IPackageManagementConsoleHost consoleHost)
 {
     viewModel = new TestablePackageManagementConsoleViewModel(packageSources, consoleHost);
     projectService = viewModel.FakeProjectService;
 }
Ejemplo n.º 32
0
 public ConsolePackageActionRunner(
     IPackageManagementConsoleHost consoleHost,
     PackageActionsToRun packageActionsToRun)
     : this(consoleHost, packageActionsToRun, new PackageManagementWorkbench())
 {
 }
Ejemplo n.º 33
0
 void CreateViewModel(IEnumerable <PackageSource> packageSources, IPackageManagementConsoleHost consoleHost)
 {
     viewModel      = new TestablePackageManagementConsoleViewModel(packageSources, consoleHost);
     projectService = viewModel.FakeProjectService;
 }
Ejemplo n.º 34
0
        public InstallPackageCmdlet(
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
            : base(consoleHost, terminatingError)
        {
        }
 internal InvokeInitializePackagesCmdlet(
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
 }
Ejemplo n.º 36
0
 public GetProjectCmdlet(
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
 }
Ejemplo n.º 37
0
 public TestablePackageManagementConsoleViewModel(
     IPackageManagementConsoleHost consoleHost,
     FakePackageManagementProjectService projectService)
     : this(new RegisteredPackageSources(new PackageSource[0]), consoleHost, projectService)
 {
 }
		public TestablePackageManagementConsoleViewModel(
			IEnumerable<PackageSource> packageSources,
			IPackageManagementConsoleHost consoleHost)
			: this(new RegisteredPackageSources(packageSources), consoleHost, new FakePackageManagementProjectService())
		{
		}
Ejemplo n.º 39
0
 void CreateViewModel(IPackageManagementConsoleHost consoleHost, FakePackageManagementProjectService projectService)
 {
     viewModel = new TestablePackageManagementConsoleViewModel(consoleHost, projectService);
 }
		public TestablePackageManagementConsoleViewModel(
			IPackageManagementConsoleHost consoleHost,
			FakePackageManagementProjectService projectService)
			: this(new RegisteredPackageSources(new PackageSource[0]), consoleHost, projectService)
		{
		}
 void CreateViewModel(IPackageManagementConsoleHost consoleHost)
 {
     viewModel = new TestablePackageManagementConsoleViewModel(consoleHost);
     projectService = viewModel.FakeProjectService;
 }
Ejemplo n.º 42
0
		public ConsolePackageActionRunner(
			IPackageManagementConsoleHost consoleHost,
			PackageActionsToRun packageActionsToRun)
			: this(consoleHost, packageActionsToRun, new PackageManagementWorkbench())
		{
		}
 void CreateViewModel(IPackageManagementConsoleHost consoleHost, FakePackageManagementProjectService projectService)
 {
     viewModel = new TestablePackageManagementConsoleViewModel(consoleHost, projectService);
 }
Ejemplo n.º 44
0
 public ConsoleInitializer(IPackageManagementConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
 }
Ejemplo n.º 45
0
 public PackageInitializationScriptsConsole(
     IPackageManagementConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
 }
Ejemplo n.º 46
0
 public TestablePackageManagementConsoleViewModel(IPackageManagementConsoleHost consoleHost)
     : this(new RegisteredPackageSources(new PackageSource[0]), consoleHost)
 {
 }
Ejemplo n.º 47
0
 public InstallPackageCmdlet(
     IPackageManagementConsoleHost consoleHost,
     ICmdletTerminatingError terminatingError)
     : base(consoleHost, terminatingError)
 {
 }
		public GetProjectCmdlet (
			IPackageManagementConsoleHost consoleHost,
			ICmdletTerminatingError terminatingError)
			: base (consoleHost, terminatingError)
		{
		}
		public PackageInitializationScriptsConsole(
			IPackageManagementConsoleHost consoleHost)
		{
			this.consoleHost = consoleHost;
		}
 public ClearPackageManagementConsoleHostCommand(IPackageManagementConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
 }
		public TestablePackageManagementConsoleViewModel(IPackageManagementConsoleHost consoleHost)
			: this(new RegisteredPackageSources(new PackageSource[0]), consoleHost)
		{
		}
Ejemplo n.º 52
0
 void CreateViewModel(IPackageManagementConsoleHost consoleHost)
 {
     viewModel      = new TestablePackageManagementConsoleViewModel(consoleHost);
     projectService = viewModel.FakeProjectService;
 }