Exemple #1
0
        void CreatePackageManagementService(PackageManagementOptions options)
        {
            testProject = ProjectHelper.CreateTestProject();
            fakePackageRepositoryFactory      = new FakePackageRepositoryFactory();
            fakePackageManagerFactory         = new FakePackageManagerFactory();
            fakeProjectService                = new FakePackageManagementProjectService();
            fakeOutputMessagesView            = new FakePackageManagementOutputMessagesView();
            fakeProjectService.CurrentProject = testProject;
            packageManagementService          =
                new PackageManagementService(options,
                                             fakePackageRepositoryFactory,
                                             fakePackageManagerFactory,
                                             fakeProjectService,
                                             fakeOutputMessagesView);

            installPackageHelper = new InstallPackageHelper(packageManagementService);
        }
		void CreatePackageManagementService(PackageManagementOptions options)
		{
			testProject = ProjectHelper.CreateTestProject();
			fakePackageRepositoryFactory = new FakePackageRepositoryFactory();
			fakePackageManagerFactory = new FakePackageManagerFactory();
			fakeProjectService = new FakePackageManagementProjectService();
			fakeOutputMessagesView = new FakePackageManagementOutputMessagesView();
			fakeProjectService.CurrentProject = testProject;
			packageManagementService = 
				new PackageManagementService(options,
					fakePackageRepositoryFactory,
					fakePackageManagerFactory,
					fakeProjectService,
					fakeOutputMessagesView);

			installPackageHelper = new InstallPackageHelper(packageManagementService);
		}
		public TestableManagePackagesCommand(FakePackageManagementOutputMessagesView view)
			: base(view)
		{
			this.FakeOutputMessagesView = view;
		}