/// <summary>
        /// </summary>
        /// <param name="mainWindow"></param>
        /// <param name="taskbarIcon"></param>
        /// <param name="executePowerShellScript"></param>
        /// <param name="scriptPaths"></param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="mainWindow" /> is <see langword="null" />.
        ///     <paramref name="taskbarIcon" /> is <see langword="null" />.
        /// </exception>
        public TaskbarIconConfiguration(MainWindow mainWindow, TaskbarIcon taskbarIcon, IExecutePowerShellScript executePowerShellScript,
                                        IScriptPaths scriptPaths)
        {
            _mainWindow  = mainWindow ?? throw new ArgumentNullException(nameof(mainWindow));
            _taskbarIcon = taskbarIcon ?? throw new ArgumentNullException(nameof(taskbarIcon));

            _executePowerShellScript = executePowerShellScript ?? throw new ArgumentNullException(nameof(executePowerShellScript));
            _scriptPaths             = scriptPaths ?? throw new ArgumentNullException(nameof(scriptPaths));
        }
Example #2
0
 public PowerShellScriptsRaw(IFileListFromPath fileListFromPath, IScriptPaths scriptPaths)
 {
     _fileListFromPath = fileListFromPath ?? throw new ArgumentNullException(nameof(fileListFromPath));
     _scriptPaths      = scriptPaths ?? throw new ArgumentNullException(nameof(scriptPaths));
 }