Example #1
0
        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;
        }
Example #2
0
        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;
        }
Example #3
0
        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;
        }
Example #4
0
        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;
        }