• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Design.FakePackageManagementSolution类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

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


示例16: CreateViewModel

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


示例17: CreateViewModel

		void CreateViewModel(FakePackageManagementSolution solution, IThreadSafePackageManagementEvents packageManagementEvents)
		{
			taskFactory = new FakeTaskFactory();
			fakeLicenseAcceptanceSevice = new FakeLicenseAcceptanceService();
			fakeActionRunner = new FakePackageActionRunner();
			viewModel = new ManagePackagesViewModel(
				solution,
				fakeRegisteredPackageRepositories,
				packageManagementEvents,
				fakeActionRunner,
				fakeLicenseAcceptanceSevice,
				taskFactory);
			taskFactory.ExecuteAllFakeTasks();
		}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:14,代码来源:ManagePackagesViewModelTests.cs


示例18: TestablePackageManagementConsoleHost

		public TestablePackageManagementConsoleHost(
			FakePackageManagementSolution solution,
			FakeRegisteredPackageRepositories registeredPackageRepositories,
			FakeScriptingConsoleWithLinesToRead scriptingConsole,
			FakePowerShellHostFactory powerShellHostFactory,
			FakePackageManagementAddInPath addinPath)
			: base(solution, registeredPackageRepositories, null, powerShellHostFactory, addinPath)
		{
			this.FakeSolution = solution;
			this.FakeScriptingConsole = scriptingConsole;
			this.ScriptingConsole = scriptingConsole;
			this.FakePowerShellHostFactory = powerShellHostFactory;
			this.FakeRegisteredPackageRepositories = registeredPackageRepositories;
			this.FakePackageManagementAddInPath = addinPath;
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:15,代码来源:TestablePackageManagementConsoleHost.cs


示例19: TestableUpdatedPackageViewModel

		public TestableUpdatedPackageViewModel(
			FakePackage package,
			FakePackageManagementSolution solution,
			FakePackageManagementEvents packageManagementEvents,
			FakePackageActionRunner actionRunner,
			FakeLogger logger)
			: base(
				package,
				solution,
				packageManagementEvents,
				actionRunner,
				logger)
		{
			this.FakePackage = package;
			this.FakeSolution = solution;
			this.FakeActionRunner = actionRunner;
			this.FakeLogger = logger;
		}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:18,代码来源:TestableUpdatedPackageViewModel.cs


示例20: CreateSolution

		void CreateSolution()
		{
			solution = new FakePackageManagementSolution();
		}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:4,代码来源:UpdatedPackagesViewModelTests.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Design.FakePackageRepository类代码示例发布时间:2022-05-26
下一篇:
C# Design.FakePackageManagementProject类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap