public void Setup() { this.filesystemAccessor = new PhysicalFilesystemAccessor(new DefaultFileEncodingProvider()); IConfigurationFileTransformer configurationFileTransformer = new ConfigurationFileTransformer(this.filesystemAccessor); this.configurationFileTransformationService = new ConfigurationFileTransformationService(this.filesystemAccessor, configurationFileTransformer); }
public PackageInstaller(ApplicationInformation applicationInformation, IFilesystemAccessor filesystemAccessor, IPackageConfigurationAccessor packageConfigurationAccessor, IPackageRepositoryBrowser packageRepositoryBrowser, IPowerShellExecutor powerShellExecutor, IInstallationLogicProvider installationLogicProvider, IPackageUninstaller packageUninstaller, INugetPackageExtractor nugetPackageExtractor, IPackageConfigurationTransformationService packageConfigurationTransformationService, IConfigurationFileTransformationService configurationFileTransformationService) { if (applicationInformation == null) { throw new ArgumentNullException("applicationInformation"); } if (filesystemAccessor == null) { throw new ArgumentNullException("filesystemAccessor"); } if (packageConfigurationAccessor == null) { throw new ArgumentNullException("packageConfigurationAccessor"); } if (packageRepositoryBrowser == null) { throw new ArgumentNullException("packageRepositoryBrowser"); } if (powerShellExecutor == null) { throw new ArgumentNullException("powerShellExecutor"); } if (installationLogicProvider == null) { throw new ArgumentNullException("installationLogicProvider"); } if (packageUninstaller == null) { throw new ArgumentNullException("packageUninstaller"); } if (nugetPackageExtractor == null) { throw new ArgumentNullException("nugetPackageExtractor"); } if (packageConfigurationTransformationService == null) { throw new ArgumentNullException("packageConfigurationTransformationService"); } if (configurationFileTransformationService == null) { throw new ArgumentNullException("configurationFileTransformationService"); } this.applicationInformation = applicationInformation; this.filesystemAccessor = filesystemAccessor; this.packageConfigurationAccessor = packageConfigurationAccessor; this.packageRepositoryBrowser = packageRepositoryBrowser; this.powerShellExecutor = powerShellExecutor; this.installationLogicProvider = installationLogicProvider; this.packageUninstaller = packageUninstaller; this.nugetPackageExtractor = nugetPackageExtractor; this.packageConfigurationTransformationService = packageConfigurationTransformationService; this.configurationFileTransformationService = configurationFileTransformationService; }