예제 #1
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="supportedMediaFileTypesFilter"></param>
        /// <param name="fileListFromPath"></param>
        /// <param name="pathToScan"></param>
        public MediaFiles(ISupportedMediaFileTypesFilter supportedMediaFileTypesFilter, IFileListFromPath fileListFromPath, IPathToScan pathToScan)

        {
            _filesToScan        = fileListFromPath ?? throw new ArgumentNullException(nameof(fileListFromPath));
            _pathToScan         = pathToScan ?? throw new ArgumentNullException(nameof(pathToScan));
            _supportedFileTypes = supportedMediaFileTypesFilter ?? throw new ArgumentNullException(nameof(supportedMediaFileTypesFilter));
        }
예제 #2
0
 public PowerShellScriptsRaw(IFileListFromPath fileListFromPath, IScriptPaths scriptPaths)
 {
     _fileListFromPath = fileListFromPath ?? throw new ArgumentNullException(nameof(fileListFromPath));
     _scriptPaths      = scriptPaths ?? throw new ArgumentNullException(nameof(scriptPaths));
 }
예제 #3
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="app"></param>
 /// <param name="fileListFromPath"></param>
 public ListFromFileSystem(App app, IFileListFromPath fileListFromPath)
 {
     _app = app ?? throw new ArgumentNullException(nameof(app));
     _fileListFromPath = fileListFromPath ?? throw new ArgumentNullException(nameof(fileListFromPath));
 }