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.packagingFolderPathProvider = new PackagingFolderPathProvider(this.applicationInformation, this.fileSystemAccessor); }