public TestablePackageManagementCmdlet(FakeCmdletTerminatingError terminatingError)
			: base(
				new FakePackageManagementConsoleHost(),
				terminatingError)
		{
			this.CommandRuntime = new FakeCommandRuntime();
		}
		void CreateCmdlet()
		{
			cmdlet = new TestableInvokeInitializePackagesCmdlet();
			fakeProjectService = cmdlet.FakeProjectService;
			fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
			scriptsFactory = cmdlet.FakeScriptsFactory;
		}
Exemple #3
0
 public TestablePackageManagementCmdlet(FakeCmdletTerminatingError terminatingError)
     : base(
         new FakePackageManagementConsoleHost(),
         terminatingError)
 {
     this.CommandRuntime = new FakeCommandRuntime();
 }
		void CreateCmdletWithoutActiveProject()
		{
			cmdlet = new TestableInstallPackageCmdlet();
			fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
			fakeConsoleHost = cmdlet.FakePackageManagementConsoleHost;
			fakeProject = fakeConsoleHost.FakeProject;
		}
		public TestableUpdatePackageCmdlet(
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(consoleHost, cmdletTerminatingError)
		{
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
		}
 public TestableInstallPackageCmdlet(
     FakePackageManagementConsoleHost consoleHost,
     FakeCmdletTerminatingError cmdletTerminatingError)
     : base(consoleHost, cmdletTerminatingError)
 {
     this.FakePackageManagementConsoleHost = consoleHost;
     this.FakeCmdletTerminatingError       = cmdletTerminatingError;
 }
		void CreateCmdlet()
		{
			cmdlet = new TestableGetProjectCmdlet();
			fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
			fakeCommandRuntime = cmdlet.FakeCommandRuntime;
			fakeConsoleHost = cmdlet.FakePackageManagementConsoleHost;
			fakeSolution = cmdlet.FakeSolution;
			defaultProject = base.AddDefaultProjectToConsoleHost();
		}
		public TestableUpdatePackageCmdlet(
			FakeUpdatePackageActionsFactory updatePackageActionsFactory,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(updatePackageActionsFactory, consoleHost, cmdletTerminatingError)
		{
			this.FakeUpdatePackageActionsFactory = updatePackageActionsFactory;
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
		}
 public TestableInvokeProcessPackageActionsCmdlet(
     PackageActionsToRun actionsToRun,
     FakePackageManagementConsoleHost consoleHost,
     FakeCmdletTerminatingError cmdletTerminatingError)
     : base(actionsToRun, consoleHost, cmdletTerminatingError)
 {
     this.ActionsToRun = actionsToRun;
     this.FakePackageManagementConsoleHost = consoleHost;
     this.FakeCmdletTerminatingError       = cmdletTerminatingError;
 }
Exemple #10
0
 public TestableUpdatePackageCmdlet(
     FakeUpdatePackageActionsFactory updatePackageActionsFactory,
     FakePackageManagementConsoleHost consoleHost,
     FakeCmdletTerminatingError cmdletTerminatingError)
     : base(updatePackageActionsFactory, consoleHost, cmdletTerminatingError)
 {
     this.FakeUpdatePackageActionsFactory  = updatePackageActionsFactory;
     this.FakePackageManagementConsoleHost = consoleHost;
     this.FakeCmdletTerminatingError       = cmdletTerminatingError;
 }
		public TestableInvokeProcessPackageActionsCmdlet(
			PackageActionsToRun actionsToRun,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(actionsToRun, consoleHost, cmdletTerminatingError)
		{
			this.ActionsToRun = actionsToRun;
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
		}
        public TestableGetProjectCmdlet(
			FakePackageManagementConsoleHost consoleHost,
			FakeCommandRuntime commandRuntime,
			FakeCmdletTerminatingError cmdletTerminatingError)
            : base(consoleHost, cmdletTerminatingError)
        {
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCommandRuntime = commandRuntime;
            this.CommandRuntime = commandRuntime;
            this.FakeCmdletTerminatingError = cmdletTerminatingError;
            this.FakeSolution = consoleHost.FakeSolution;
        }
		void CreateCmdletWithoutActiveProject()
		{
			cmdlet = new TestableUpdatePackageCmdlet();
			fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
			fakeConsoleHost = cmdlet.FakePackageManagementConsoleHost;
			fakeSolution = fakeConsoleHost.FakeSolution;
			fakeProject = fakeConsoleHost.FakeProject;
			fakeUpdateActionsFactory = cmdlet.FakeUpdatePackageActionsFactory;
			fakeUpdateAllPackagesInProject = fakeUpdateActionsFactory.FakeUpdateAllPackagesInProject;
			fakeUpdateAllPackagesInSolution = fakeUpdateActionsFactory.FakeUpdateAllPackagesInSolution;
			fakeUpdatePackageInAllProjects = fakeUpdateActionsFactory.FakeUpdatePackageInAllProjects;
		}
Exemple #14
0
 public TestableGetProjectCmdlet(
     FakePackageManagementConsoleHost consoleHost,
     FakeCommandRuntime commandRuntime,
     FakeCmdletTerminatingError cmdletTerminatingError)
     : base(consoleHost, cmdletTerminatingError)
 {
     this.FakePackageManagementConsoleHost = consoleHost;
     this.FakeCommandRuntime         = commandRuntime;
     this.CommandRuntime             = commandRuntime;
     this.FakeCmdletTerminatingError = cmdletTerminatingError;
     this.FakeSolution = consoleHost.FakeSolution;
 }
		void CreateCmdlet()
		{
			cmdlet = new TestableGetPackageCmdlet();
			fakeSolution = new FakePackageManagementSolution();
			fakeRegisteredPackageRepositories = cmdlet.FakeRegisteredPackageRepositories;
			fakeConsoleHost = cmdlet.FakePackageManagementConsoleHost;
			fakeConsoleHost.FakeProject = fakeSolution.FakeActiveProject;
			fakeCommandRuntime = cmdlet.FakeCommandRuntime;
			fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
			
			AddDefaultProjectToConsoleHost();
		}
        public TestableGetPackageCmdlet(
			FakeRegisteredPackageRepositories registeredPackageRepositories,
			FakePackageManagementConsoleHost consoleHost,
			FakeCommandRuntime commandRuntime,
			FakeCmdletTerminatingError terminatingError)
            : base(registeredPackageRepositories, consoleHost, terminatingError)
        {
            this.FakeRegisteredPackageRepositories = registeredPackageRepositories;
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCommandRuntime = commandRuntime;
            this.CommandRuntime = commandRuntime;
            this.FakeCmdletTerminatingError = terminatingError;
        }
Exemple #17
0
 public TestableGetPackageCmdlet(
     FakeRegisteredPackageRepositories registeredPackageRepositories,
     FakePackageManagementConsoleHost consoleHost,
     FakeCommandRuntime commandRuntime,
     FakeCmdletTerminatingError terminatingError)
     : base(registeredPackageRepositories, consoleHost, terminatingError)
 {
     this.FakeRegisteredPackageRepositories = registeredPackageRepositories;
     this.FakePackageManagementConsoleHost  = consoleHost;
     this.FakeCommandRuntime         = commandRuntime;
     this.CommandRuntime             = commandRuntime;
     this.FakeCmdletTerminatingError = terminatingError;
 }
Exemple #18
0
        public TestableInvokeUpdateWorkingDirectoryCmdlet(
            FakePackageManagementProjectService projectService,
            FakePackageManagementConsoleHost consoleHost,
            FakeCmdletTerminatingError cmdletTerminatingError)
            : base(projectService, consoleHost, cmdletTerminatingError)
        {
            this.FakeProjectService = projectService;
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCmdletTerminatingError       = cmdletTerminatingError;

            Solution                    = new Solution(new MockProjectChangeWatcher());
            Solution.FileName           = @"d:\projects\MyProject\MyProject.sln";
            projectService.OpenSolution = Solution;
        }
		public TestableInvokeUpdateWorkingDirectoryCmdlet(
			FakePackageManagementProjectService projectService,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(projectService, consoleHost, cmdletTerminatingError)
		{
			this.FakeProjectService = projectService;
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
			
			Solution = new Solution();
			Solution.FileName = @"d:\projects\MyProject\MyProject.sln";
			projectService.OpenSolution = Solution;
		}
        public TestableInvokeInitializePackagesCmdlet(
            FakePackageManagementProjectService projectService,
            FakePackageInitializationScriptsFactory scriptsFactory,
            FakePackageManagementConsoleHost consoleHost,
            FakeCmdletTerminatingError cmdletTerminatingError)
            : base(projectService, scriptsFactory, consoleHost, cmdletTerminatingError)
        {
            this.FakeProjectService = projectService;
            this.FakeScriptsFactory = scriptsFactory;
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCmdletTerminatingError       = cmdletTerminatingError;

            Solution                    = new Solution(new MockProjectChangeWatcher());
            Solution.FileName           = @"d:\projects\MyProject\MyProject.sln";
            projectService.OpenSolution = Solution;
        }
		public TestableInvokeInitializePackagesCmdlet(
			FakePackageManagementProjectService projectService,
			FakePackageInitializationScriptsFactory scriptsFactory,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(projectService, scriptsFactory, consoleHost, cmdletTerminatingError)
		{
			this.FakeProjectService = projectService;
			this.FakeScriptsFactory = scriptsFactory;
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
			
			Solution = MockRepository.GenerateStub<ISolution>();
			Solution.Stub(s => s.FileName).Return(new FileName(@"d:\projects\MyProject\MyProject.sln"));
			projectService.OpenSolution = Solution;
		}
		public TestableInvokeInitializePackagesCmdlet(
			FakePackageManagementProjectService projectService,
			FakePackageInitializationScriptsFactory scriptsFactory,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
			: base(projectService, scriptsFactory, consoleHost, cmdletTerminatingError)
		{
			this.FakeProjectService = projectService;
			this.FakeScriptsFactory = scriptsFactory;
			this.FakePackageManagementConsoleHost = consoleHost;
			this.FakeCmdletTerminatingError = cmdletTerminatingError;
			
			Solution = new Solution(new MockProjectChangeWatcher());
			Solution.FileName = @"d:\projects\MyProject\MyProject.sln";
			projectService.OpenSolution = Solution;
		}
        public TestableInvokeInitializePackagesCmdlet(
            FakePackageManagementProjectService projectService,
            FakePackageInitializationScriptsFactory scriptsFactory,
            FakePackageManagementConsoleHost consoleHost,
            FakeCmdletTerminatingError cmdletTerminatingError)
            : base(projectService, scriptsFactory, consoleHost, cmdletTerminatingError)
        {
            this.FakeProjectService = projectService;
            this.FakeScriptsFactory = scriptsFactory;
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCmdletTerminatingError       = cmdletTerminatingError;

            Solution = MockRepository.GenerateStub <ISolution>();
            Solution.Stub(s => s.FileName).Return(new FileName(@"d:\projects\MyProject\MyProject.sln"));
            projectService.OpenSolution = Solution;
        }
        public TestableInvokeUpdateWorkingDirectoryCmdlet(
			string solutionFileName,
			FakePackageManagementProjectService projectService,
			FakePackageManagementConsoleHost consoleHost,
			FakeCmdletTerminatingError cmdletTerminatingError)
            : base(projectService, consoleHost, cmdletTerminatingError)
        {
            this.FakeProjectService = projectService;
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCmdletTerminatingError = cmdletTerminatingError;

            Solution = MockRepository.GenerateStub<ISolution>();
            var fileName = new FileName(solutionFileName);
            Solution.Stub(s => s.Directory).Return(fileName.GetParentDirectory());
            Solution.Stub(s => s.FileName).Return(fileName);
            projectService.OpenSolution = Solution;
        }
Exemple #25
0
        public TestableInvokeUpdateWorkingDirectoryCmdlet(
            string solutionFileName,
            FakePackageManagementProjectService projectService,
            FakePackageManagementConsoleHost consoleHost,
            FakeCmdletTerminatingError cmdletTerminatingError)
            : base(projectService, consoleHost, cmdletTerminatingError)
        {
            this.FakeProjectService = projectService;
            this.FakePackageManagementConsoleHost = consoleHost;
            this.FakeCmdletTerminatingError       = cmdletTerminatingError;

            Solution = MockRepository.GenerateStub <ISolution>();
            var fileName = new FileName(solutionFileName);

            Solution.Stub(s => s.Directory).Return(fileName.GetParentDirectory());
            Solution.Stub(s => s.FileName).Return(fileName);
            projectService.OpenSolution = Solution;
        }
		void CreateCmdlet()
		{
			cmdlet = new TestableInvokeUpdateWorkingDirectoryCmdlet();
			fakeProjectService = cmdlet.FakeProjectService;
			fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
		}
 void CreateCmdlet(string solutionFileName = @"d:\projects\MyProject\MyProject.sln")
 {
     cmdlet = new TestableInvokeUpdateWorkingDirectoryCmdlet(solutionFileName);
     fakeProjectService = cmdlet.FakeProjectService;
     fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
 }
 void CreateCmdletWithoutActiveProject()
 {
     cmdlet = new TestableGetProjectCmdlet();
     fakeTerminatingError = cmdlet.FakeCmdletTerminatingError;
 }