public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; ConstraintProvider = NullConstraintProvider.Instance; TargetFramework = new FrameworkName(".NETFramework", new Version("4.0")); InstallPackageAction = (package, installAction) => { PackagePassedToInstallPackage = package; PackageOperationsPassedToInstallPackage = installAction.Operations; IgnoreDependenciesPassedToInstallPackage = installAction.IgnoreDependencies; AllowPrereleaseVersionsPassedToInstallPackage = installAction.AllowPrereleaseVersions; }; UpdatePackageAction = (package, updateAction) => { PackagePassedToUpdatePackage = package; PackageOperationsPassedToUpdatePackage = updateAction.Operations; UpdateDependenciesPassedToUpdatePackage = updateAction.UpdateDependencies; AllowPrereleaseVersionsPassedToUpdatePackage = updateAction.AllowPrereleaseVersions; IsUpdatePackageCalled = true; }; }
public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; }
public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; ConstraintProvider = NullConstraintProvider.Instance; TargetFramework = new FrameworkName(".NETFramework", new Version("4.0")); InstallPackageAction = (package, installAction) => { PackagePassedToInstallPackage = package; PackageOperationsPassedToInstallPackage = installAction.Operations; IgnoreDependenciesPassedToInstallPackage = installAction.IgnoreDependencies; AllowPrereleaseVersionsPassedToInstallPackage = installAction.AllowPrereleaseVersions; }; UpdatePackageAction = (package, updateAction) => { PackagePassedToUpdatePackage = package; PackageOperationsPassedToUpdatePackage = updateAction.Operations; UpdateDependenciesPassedToUpdatePackage = updateAction.UpdateDependencies; AllowPrereleaseVersionsPassedToUpdatePackage = updateAction.AllowPrereleaseVersions; IsUpdatePackageCalled = true; }; }
public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; }
void CreateCmdletWithoutActiveProject() { cmdlet = new TestableUninstallPackageCmdlet(); fakeTerminatingError = cmdlet.FakeCmdletTerminatingError; fakeConsoleHost = cmdlet.FakePackageManagementConsoleHost; fakeProject = fakeConsoleHost.FakeProject; uninstallPackageAction = fakeProject.FakeUninstallPackageAction; }
public FakePackageManagementProject() { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); FakeUpdatePackageAction = new FakeUpdatePackageAction(this); Name = "Test"; }
public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; ConstraintProvider = NullConstraintProvider.Instance; }
public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; ConstraintProvider = NullConstraintProvider.Instance; }
public FakePackageManagementProject(string name) { FakeInstallPackageAction = new FakeInstallPackageAction(this); FakeUninstallPackageAction = new FakeUninstallPackageAction(this); this.Name = name; ConstraintProvider = NullConstraintProvider.Instance; TargetFramework = new FrameworkName(".NETFramework", new Version("4.0")); }
void CreateViewModel(FakePackageManagementSolution solution) { viewModel = new TestablePackageViewModel(solution); fakePackage = viewModel.FakePackage; this.fakeSolution = solution; fakePackageManagementEvents = viewModel.FakePackageManagementEvents; fakeLogger = viewModel.FakeLogger; fakeInstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeInstallPackageAction; fakeUninstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeUninstallPackageAction; fakeActionRunner = viewModel.FakeActionRunner; }
void CreateViewModel(FakePackageManagementSolution solution) { viewModelParent = MockRepository.GenerateStub<IPackageViewModelParent>(); viewModel = new TestablePackageViewModel(viewModelParent, solution); fakePackage = viewModel.FakePackage; this.fakeSolution = solution; fakePackageManagementEvents = viewModel.FakePackageManagementEvents; fakeLogger = viewModel.FakeLogger; fakeUninstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeUninstallPackageAction; fakeActionRunner = viewModel.FakeActionRunner; }
FakeUninstallPackageAction CreateFakeUninstallAction() { fakeUninstallAction = new FakeUninstallPackageAction(project); return fakeUninstallAction; }