当前位置: 首页>>代码示例>>C#>>正文


C# Design.FakePackageManagementSolution类代码示例

本文整理汇总了C#中ICSharpCode.PackageManagement.Design.FakePackageManagementSolution的典型用法代码示例。如果您正苦于以下问题:C# FakePackageManagementSolution类的具体用法?C# FakePackageManagementSolution怎么用?C# FakePackageManagementSolution使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FakePackageManagementSolution类属于ICSharpCode.PackageManagement.Design命名空间,在下文中一共展示了FakePackageManagementSolution类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateUpdatePackageInAllProjects

		void CreateUpdatePackageInAllProjects(string packageId, SemanticVersion version)
		{
			fakeSolution = new FakePackageManagementSolution();
			fakeSourceRepository = new FakePackageRepository();
			var packageReference = new PackageReference(packageId, version, null, null, false, false);
			updatePackageInAllProjects = new UpdatePackageInAllProjects(packageReference, fakeSolution, fakeSourceRepository);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:UpdatePackageInAllProjectsTests.cs

示例2: CreateViewModel

		void CreateViewModel(
			FakePackageManagementSolution solution, 
			IThreadSafePackageManagementEvents packageManagementEvents)
		{
			fakeTaskFactory = new FakeTaskFactory();
			fakeLicenseAcceptanceService = new FakeLicenseAcceptanceService();
			fakeSelectProjectsService = new FakeSelectProjectsService();
			userPrompts = new ManagePackagesUserPrompts(
				packageManagementEvents,
				fakeLicenseAcceptanceService,
				fakeSelectProjectsService);
			fakeActionRunner = new FakePackageActionRunner();
			
			packagesViewModels = new PackagesViewModels(
				solution,
				fakeRegisteredPackageRepositories,
				packageManagementEvents,
				fakeActionRunner,
				fakeTaskFactory);
			
			viewTitle = new ManagePackagesViewTitle(solution);
			
			viewModel = new ManagePackagesViewModel(
				packagesViewModels,
				viewTitle,
				packageManagementEvents,
				userPrompts);
			fakeTaskFactory.ExecuteAllFakeTasks();
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:29,代码来源:ManagePackagesViewModelTests.cs

示例3: CreateViewModel

		void CreateViewModel(FakePackageManagementSolution fakeSolution)
		{
			viewModel = new TestableUpdatedPackageViewModel(fakeSolution);
			fakeProject = fakeSolution.FakeProjectToReturnFromGetProject;
			fakeActionRunner = viewModel.FakeActionRunner;
			fakePackageManagementEvents = viewModel.FakePackageManagementEvents;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:UpdatedPackageViewModelTests.cs

示例4: CreateViewModel

		void CreateViewModel(FakePackageManagementSolution fakeSolution)
		{
			viewModelParent = MockRepository.GenerateStub<IPackageViewModelParent>();
			viewModel = new TestableUpdatedPackageViewModel(viewModelParent, fakeSolution);
			fakeProject = fakeSolution.FakeProjectToReturnFromGetProject;
			fakeActionRunner = viewModel.FakeActionRunner;
			fakePackageManagementEvents = viewModel.FakePackageManagementEvents;
		}
开发者ID:kristjan84,项目名称:SharpDevelop,代码行数:8,代码来源:UpdatedPackageViewModelTests.cs

示例5: TestablePackageViewModel

		public TestablePackageViewModel(FakePackageManagementSolution solution)
			: this(
				new FakePackage(),
				solution,
				new FakePackageManagementEvents(),
				new FakePackageActionRunner(),
				new FakeLogger())
		{
		}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:9,代码来源:TestablePackageViewModel.cs

示例6: CreateProvider

		void CreateProvider()
		{
			fakeSolution = new FakePackageManagementSolution();
			fakeRegisteredRepositories = new FakeRegisteredPackageRepositories();
			fakePowerShellDetection = new FakePowerShellDetection();
			provider = new PackageManagementConsoleHostProvider(
				fakeSolution,
				fakeRegisteredRepositories,
				fakePowerShellDetection);
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:10,代码来源:PackageManagementConsoleHostProviderTests.cs

示例7: TestablePackageViewModel

		public TestablePackageViewModel(FakePackageManagementSolution solution)
			: this(
				new FakePackage("Test"),
				new PackageManagementSelectedProjects(solution),
				new FakePackageManagementEvents(),
				new FakePackageActionRunner(),
				new FakeLogger())
		{
			this.FakeSolution = solution;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:10,代码来源:TestablePackageViewModel.cs

示例8: CreateViewModel

		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;
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:11,代码来源:PackageViewModelTests.cs

示例9: TestableInstalledPackageViewModel

		public TestableInstalledPackageViewModel(FakePackageManagementSolution solution)
			: this(
				new FakePackage(),
				new SelectedProjectsForInstalledPackages(solution),
				new FakePackageManagementEvents(),
				new FakePackageActionRunner(),
				new FakeLogger())
		{
			this.FakeSolution = solution;
			solution.FakeActiveMSBuildProject = ProjectHelper.CreateTestProject("MyProject");
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:11,代码来源:TestableInstalledPackageViewModel.cs

示例10: DesignTimePackagesViewModel

		public DesignTimePackagesViewModel(
			DesignTimeRegisteredPackageRepositories registeredPackageRepositories,
			FakePackageManagementSolution solution)
			: base(
				registeredPackageRepositories,
				new PackageViewModelFactory(solution, null, null),
				new PackageManagementTaskFactory())
		{
			PageSize = 3;
			AddPackageViewModels();
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:11,代码来源:DesignTimePackagesViewModel.cs

示例11: CreateViewModel

		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;
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:11,代码来源:PackageViewModelTests.cs

示例12: CreateViewModel

		void CreateViewModel(FakePackageManagementSolution solution)
		{
			taskFactory = new FakeTaskFactory();
			registeredPackageRepositories = new FakeRegisteredPackageRepositories();
			var packageViewModelFactory = new FakePackageViewModelFactory();
			viewModel = new UpdatedPackagesViewModel(
				solution,
				registeredPackageRepositories,
				packageViewModelFactory,
				taskFactory);
		}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:11,代码来源:UpdatedPackagesViewModelTests.cs

示例13: CreateViewModel

		void CreateViewModel(
			FakePackageManagementSolution solution,
			FakeRegisteredPackageRepositories registeredPackageRepositories,
			FakePackageActionRunner actionRunner)
		{
			packageViewModelFactory = new FakePackageViewModelFactory {
				FakeSolution = solution,
				FakeActionRunner = actionRunner
			};
			CreateViewModel(solution, registeredPackageRepositories, packageViewModelFactory);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:11,代码来源:UpdatedPackagesViewModelTests.cs

示例14: TestableUpdatedPackageViewModel

        public TestableUpdatedPackageViewModel(
			IPackageViewModelParent parent,
			FakePackageManagementSolution solution)
            : this(parent,
				new FakePackage(),
				new SelectedProjectsForUpdatedPackages(solution),
				new FakePackageManagementEvents(),
				new FakePackageActionRunner(),
				new FakeLogger())
        {
            this.FakeSolution = solution;
        }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:12,代码来源:TestableUpdatedPackageViewModel.cs

示例15: CreateHost

		void CreateHost()
		{
			host = new TestablePackageManagementConsoleHost();
			fakeSolution = host.FakeSolution;
			scriptingConsole = host.FakeScriptingConsole;
			powerShellHost = host.FakePowerShellHostFactory.FakePowerShellHost;
			fakeRegisteredPackageRepositories = host.FakeRegisteredPackageRepositories;
		}
开发者ID:kristjan84,项目名称:SharpDevelop,代码行数:8,代码来源:PackageManagementConsoleHostTests.cs


注:本文中的ICSharpCode.PackageManagement.Design.FakePackageManagementSolution类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。