public RoleService(string rolesDirectoryPath, ICacheService cacheService, IDiskInputOutputService diskInputOutputService) { if (rolesDirectoryPath == null) { throw new ArgumentNullException("rolesDirectoryPath"); } if (cacheService == null) { throw new ArgumentNullException("cacheService"); } if (diskInputOutputService == null) { throw new ArgumentNullException("diskInputOutputService"); } _rolesDirectoryPath = rolesDirectoryPath; _cacheService = cacheService; _diskInputOutputService = diskInputOutputService; }
public AlbumService(string albumRootDirPath, ICacheService cacheService, IDiskInputOutputService diskInputOutputService) { if (albumRootDirPath == null) { throw new ArgumentNullException("albumRootDirPath"); } if (cacheService == null) { throw new ArgumentNullException("cacheService"); } if (diskInputOutputService == null) { throw new ArgumentNullException("diskInputOutputService"); } _albumRootDirPath = albumRootDirPath; _cacheService = cacheService; _diskInputOutputService = diskInputOutputService; }