void CreatePackageManager (IProject project, PackageReferenceRepositoryHelper packageRefRepositoryHelper) { options = new TestablePackageManagementOptions (); options.PackagesDirectory = "packages"; repositoryPaths = new SolutionPackageRepositoryPath (project, options); var pathResolver = new DefaultPackagePathResolver (repositoryPaths.PackageRepositoryPath); fakeFileSystem = new FakeFileSystem (); fakeFeedSourceRepository = new FakePackageRepository (); fakeSolutionSharedRepository = packageRefRepositoryHelper.FakeSharedSourceRepository; fakePackageOperationResolverFactory = new FakePackageOperationResolverFactory (); fakePackageOperationResolver = fakePackageOperationResolverFactory.FakeInstallPackageOperationResolver; var fakeSolutionPackageRepository = new FakeSolutionPackageRepository (); fakeSolutionPackageRepository.FileSystem = fakeFileSystem; fakeSolutionPackageRepository.PackagePathResolver = pathResolver; fakeSolutionPackageRepository.FakeSharedRepository = fakeSolutionSharedRepository; packageManager = new MonoDevelopPackageManager (fakeFeedSourceRepository, packageRefRepositoryHelper.FakeProjectSystem, fakeSolutionPackageRepository, fakePackageOperationResolverFactory); }
void CreateReducedPackageOperations () { packages = new List<IPackage> (); fakePackageOperationResolver = new FakePackageOperationResolver (); reducedPackageOperations = new ReducedPackageOperations (fakePackageOperationResolver, packages); }
void CreateFakePackageResolverForUpdatePackageOperations () { fakePackageOperationResolver = new FakePackageOperationResolver (); fakePackageOperationResolverFactory.UpdatePackageOperationsResolver = fakePackageOperationResolver; }