public PrepackagingService(IFilesystemAccessor filesystemAccessor, IAssemblyResourceDownloader assemblyResourceDownloader, IBuildResultFilePathProvider buildResultFilePathProvider, IPrePackagingFolderPathProvider prePackagingFolderPathProvider) { if (filesystemAccessor == null) { throw new ArgumentNullException("filesystemAccessor"); } if (assemblyResourceDownloader == null) { throw new ArgumentNullException("assemblyResourceDownloader"); } if (buildResultFilePathProvider == null) { throw new ArgumentNullException("buildResultFilePathProvider"); } if (prePackagingFolderPathProvider == null) { throw new ArgumentNullException("prePackagingFolderPathProvider"); } this.filesystemAccessor = filesystemAccessor; this.assemblyResourceDownloader = assemblyResourceDownloader; this.buildResultFilePathProvider = buildResultFilePathProvider; this.prePackagingFolderPath = prePackagingFolderPathProvider.GetPrePackagingFolderPath(); }
public PackagingService(IPrePackagingFolderPathProvider prePackagingFolderPathProvider, IPackagingFolderPathProvider packagingFolderPathProvider, IFilesystemAccessor filesystemAccessor) { if (prePackagingFolderPathProvider == null) { throw new ArgumentNullException("prePackagingFolderPathProvider"); } if (packagingFolderPathProvider == null) { throw new ArgumentNullException("packagingFolderPathProvider"); } if (filesystemAccessor == null) { throw new ArgumentNullException("filesystemAccessor"); } this.filesystemAccessor = filesystemAccessor; this.prePackagingFolderPath = prePackagingFolderPathProvider.GetPrePackagingFolderPath(); this.packagingFolderPath = packagingFolderPathProvider.GetPackagingFolderPath(); }
public void Setup() { this.applicationInformation = ApplicationInformationProvider.GetApplicationInformation(); this.fileSystemAccessor = new PhysicalFilesystemAccessor(new DefaultFileEncodingProvider()); this.prePackagingFolderPathProvider = new PrePackagingFolderPathProvider(this.applicationInformation, this.fileSystemAccessor); }