示例#1
0
        void CreatePackageManager(IProject project, PackageReferenceRepositoryHelper packageRefRepositoryHelper)
        {
            options = new PackageManagementOptions(new Properties());
            options.PackagesDirectory = "packages";

            repositoryPaths = new PackageRepositoryPaths(project, options);
            var pathResolver = new DefaultPackagePathResolver(repositoryPaths.SolutionPackagesPath);

            fakeFileSystem = new FakeFileSystem();

            fakeFeedSourceRepository     = new FakePackageRepository();
            fakeSolutionSharedRepository = packageRefRepositoryHelper.FakeSharedSourceRepository;

            packageManager = new SharpDevelopPackageManager(fakeFeedSourceRepository,
                                                            packageRefRepositoryHelper.FakeProjectSystem,
                                                            fakeFileSystem,
                                                            fakeSolutionSharedRepository,
                                                            pathResolver);
        }
		void CreatePackageManager(IProject project, PackageReferenceRepositoryHelper packageRefRepositoryHelper)
		{
			options = new PackageManagementOptions(new Properties());
			options.PackagesDirectory = "packages";
			
			repositoryPaths = new PackageRepositoryPaths(project, options);
			var pathResolver = new DefaultPackagePathResolver(repositoryPaths.SolutionPackagesPath);
			
			fakeFileSystem = new FakeFileSystem();
			
			fakeFeedSourceRepository = new FakePackageRepository();
			fakeSolutionSharedRepository = packageRefRepositoryHelper.FakeSharedSourceRepository;
			
			packageManager = new SharpDevelopPackageManager(fakeFeedSourceRepository,
				packageRefRepositoryHelper.FakeProjectSystem,
				fakeFileSystem,
				fakeSolutionSharedRepository,
				pathResolver);
		}
		void CreatePackageRepositoryPaths()
		{
			repositoryPaths = new PackageRepositoryPaths(testProject, options);
		}
 void CreatePackageRepositoryPaths()
 {
     repositoryPaths = new PackageRepositoryPaths(testProject, options);
 }
		IFileSystem CreateFileSystemThatWillContainPackages(MSBuildBasedProject project)
		{
			var repositoryPaths = new PackageRepositoryPaths(project, options);
			return new PhysicalFileSystem(repositoryPaths.SolutionPackagesPath);
		}