void CreateFactory() { options = new TestablePackageManagementOptions(); fakePackageRepositoryFactory = new FakePackageRepositoryFactory(); fakeProjectSystemFactory = new FakeProjectSystemFactory(); factory = new SharpDevelopPackageManagerFactory(fakePackageRepositoryFactory, fakeProjectSystemFactory, options); }
void CreateCache() { fakeMainCache = new FakePackageRepositoryFactory(); var propertyService = new FakePropertyService(); fakeSettingsFactory = new FakeSettingsFactory(); registeredPackageSources = new RegisteredProjectTemplatePackageSources(propertyService, fakeSettingsFactory); cache = new ProjectTemplatePackageRepositoryCache(fakeMainCache, registeredPackageSources); }
void CreateCacheUsingPackageSources() { nuGetPackageSource = new PackageSource("http://nuget.org", "NuGet"); fakePackageRepositoryFactory = new FakePackageRepositoryFactory(); RegisteredPackageSources packageSources = packageSourcesHelper.Options.PackageSources; IList<RecentPackageInfo> recentPackages = packageSourcesHelper.Options.RecentPackages; cache = new PackageRepositoryCache(fakePackageRepositoryFactory, packageSources, recentPackages); }
void CreateInstaller() { project = ProjectHelper.CreateTestProject(); packageReferences = new List<PackageReference>(); fakeActionRunner = new FakePackageActionRunner(); fakeProjectFactory = new FakePackageManagementProjectFactory(); fakeRepositoryCache = new FakePackageRepositoryFactory(); installer = new PackageReferenceInstaller(fakeRepositoryCache, fakeActionRunner, fakeProjectFactory); }
public TestableInstallProjectTemplatePackagesCommand( FakePackageRepositoryFactory fakePackageRepositoryCache, FakePackageManagementProjectService projectService, FakeMessageService messageService, FakeLoggingService loggingService) : base(fakePackageRepositoryCache, projectService, messageService, loggingService) { this.FakePackageRepositoryCache = fakePackageRepositoryCache; this.FakeProjectService = projectService; this.FakeMessageService = messageService; this.FakeLoggingService = loggingService; }
public TestableInstallProjectTemplatePackagesCommand( FakePackageRepositoryFactory fakePackageRepositoryCache, FakePackageManagementProjectService projectService, FakeMessageService messageService, FakeLoggingService loggingService) : base(fakePackageRepositoryCache, projectService, messageService, loggingService) { this.FakePackageRepositoryCache = fakePackageRepositoryCache; this.FakeProjectService = projectService; this.FakeMessageService = messageService; this.FakeLoggingService = loggingService; }
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 CreateViewModel() { var options = new TestablePackageManagementOptions(); packageSources = options.PackageSources; var cache = new FakePackageRepositoryFactory(); registeredRepositories = new RegisteredPackageRepositories(cache, options); packageSources.Clear(); fakeFolderBrowser = new FakeFolderBrowser(); viewModel = new RegisteredPackageSourcesViewModel(registeredRepositories, fakeFolderBrowser); }
void CreateCacheUsingPackageSources() { nuGetPackageSource = new PackageSource("http://nuget.org", "NuGet"); fakePackageRepositoryFactory = new FakePackageRepositoryFactory(); cache = new PackageRepositoryCache(packageSourcesHelper.Options, fakePackageRepositoryFactory); }
void CreateRegisteredPackageRepositoriesWithExistingPackageSourcesHelper() { fakeRepositoryCache = new FakePackageRepositoryFactory(); registeredRepositories = new RegisteredPackageRepositories(fakeRepositoryCache, packageSourcesHelper.Options); }
void CreateFakeRepositoryFactory() { fakeRepositoryFactory = new FakePackageRepositoryFactory(); fakeSharedRepository = fakeRepositoryFactory.FakeSharedRepository; }
void CreateCache() { nuGetPackageSource = new PackageSource("http://nuget.org", "NuGet"); fakePackageRepositoryFactory = new FakePackageRepositoryFactory(); cache = new PackageRepositoryCache(fakePackageRepositoryFactory); }