/// <summary> Initialises a new instance of the <see cref="GenericController"/> class. </summary> /// <remarks> Anthony, 6/1/2015. </remarks> /// <exception cref="ArgumentNullException"> Thrown when one or more required arguments are /// null. </exception> /// <param name="powershellRunner"> The PowerShell runner. </param> /// <param name="crashLogger"> An implementation of a crash logger. </param> /// <param name="jobListProvider"> The job list provider. </param> public GenericController(IRunner powershellRunner, ICrashLogger crashLogger, IJobListProvider jobListProvider) { if (jobListProvider == null) throw new ArgumentNullException("jobListProvider"); if (crashLogger == null) throw new ArgumentNullException("crashLogger"); if (powershellRunner == null) throw new ArgumentNullException("powershellRunner"); _powershellRunner = powershellRunner; _crashLogger = crashLogger; _jobListProvider = jobListProvider; }
/// <summary> Initialises a new instance of the <see cref="GenericController"/> class. </summary> /// <remarks> Anthony, 6/1/2015. </remarks> /// <exception cref="ArgumentNullException"> Thrown when one or more required arguments are /// null. </exception> /// <param name="powershellRunner"> The PowerShell runner. </param> /// <param name="crashLogger"> An implementation of a crash logger. </param> /// <param name="jobListProvider"> The job list provider. </param> public GenericController(IRunner powershellRunner, ICrashLogger crashLogger, IJobListProvider jobListProvider) { if (jobListProvider == null) { throw new ArgumentNullException("jobListProvider"); } if (crashLogger == null) { throw new ArgumentNullException("crashLogger"); } if (powershellRunner == null) { throw new ArgumentNullException("powershellRunner"); } _powershellRunner = powershellRunner; _crashLogger = crashLogger; _jobListProvider = jobListProvider; }