void CreateRunner()
		{
			actionsToRun = new PackageActionsToRun();
			fakeConsoleHost = new FakePackageManagementConsoleHost();
			fakeScriptingConsole = new FakeScriptingConsole();
			fakeConsoleHost.ScriptingConsole = fakeScriptingConsole;
			fakeWorkbench = new FakePackageManagementWorkbench();
			runner = new ConsolePackageActionRunner(fakeConsoleHost, actionsToRun, fakeWorkbench);
		}
Exemple #2
0
 public ConsolePackageActionRunner(
     IPackageManagementConsoleHost consoleHost,
     PackageActionsToRun packageActionsToRun,
     IPackageManagementWorkbench workbench)
 {
     this.consoleHost         = consoleHost;
     this.packageActionsToRun = packageActionsToRun;
     this.workbench           = workbench;
 }
		public ConsolePackageActionRunner(
			IPackageManagementConsoleHost consoleHost,
			PackageActionsToRun packageActionsToRun,
			IPackageManagementWorkbench workbench)
		{
			this.consoleHost = consoleHost;
			this.packageActionsToRun = packageActionsToRun;
			this.workbench = workbench;
		}
		public TestableInvokeProcessPackageActionsCmdlet(
			PackageActionsToRun actionsToRun,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(actionsToRun, consoleHost, cmdletTerminatingError)
		{
			this.ActionsToRun = actionsToRun;
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
		}
 void CreateActions()
 {
     actions = new PackageActionsToRun();
 }
 void CreateCmdlet()
 {
     cmdlet = new TestableInvokeProcessPackageActionsCmdlet();
     actionsToRun = cmdlet.ActionsToRun;
 }
Exemple #7
0
 public ConsolePackageActionRunner(
     IPackageManagementConsoleHost consoleHost,
     PackageActionsToRun packageActionsToRun)
     : this(consoleHost, packageActionsToRun, new PackageManagementWorkbench())
 {
 }
		public ConsolePackageActionRunner(
			IPackageManagementConsoleHost consoleHost,
			PackageActionsToRun packageActionsToRun)
			: this(consoleHost, packageActionsToRun, new PackageManagementWorkbench())
		{
		}