/// <summary> /// Initializes a new instance of the <see cref="FileIOExportFileInteractor" /> class. /// </summary> /// <param name="fileExporter">The file exporter.</param> /// <param name="contestRepository">The contest repository.</param> /// <param name="flightMatrixRepository">The flight matrix repository.</param> /// <param name="pilotRepository">The pilot repository.</param> /// <param name="pilotRegistrationRepository">The pilot registration repository.</param> /// <param name="scoringRepository">The scoring repository.</param> /// <param name="logger">The logger.</param> /// <exception cref="ArgumentNullException">fileExporter</exception> /// <exception cref="System.ArgumentNullException">fileExporter</exception> public FileIOExportFileInteractor(IFileExporter fileExporter, IContestRepository contestRepository, IFlightMatrixRepository flightMatrixRepository, IPilotRepository pilotRepository, IPilotRegistrationRepository pilotRegistrationRepository, IScoringRepository scoringRepository, ILoggingService logger) : base(logger) { this.fileExporter = fileExporter ?? throw new ArgumentNullException($"{nameof(fileExporter)} cannot be null."); this.contestRepository = contestRepository ?? throw new ArgumentNullException($"{nameof(contestRepository)} cannot be null."); this.flightMatrixRepository = flightMatrixRepository ?? throw new ArgumentNullException($"{nameof(flightMatrixRepository)} cannot be null."); this.pilotRepository = pilotRepository ?? throw new ArgumentNullException($"{nameof(pilotRepository)} cannot be null."); this.pilotRegistrationRepository = pilotRegistrationRepository ?? throw new ArgumentNullException($"{nameof(pilotRegistrationRepository)} cannot be null."); this.scoringRepository = scoringRepository ?? throw new ArgumentNullException($"{nameof(scoringRepository)} cannot be null."); }
/// <summary> /// Initializes a new instance of the <see cref="PilotRegistrationQueryInteractor"/> class. /// </summary> /// <param name="pilotRegistrationRepository">The pilot registration repository.</param> /// <param name="logger">The logger.</param> public PilotRegistrationQueryInteractor(IPilotRegistrationRepository pilotRegistrationRepository, ILoggingService logger) : base(logger) { Validate.IsNotNull(pilotRegistrationRepository, nameof(pilotRegistrationRepository)); this.pilotRegistrationRepository = pilotRegistrationRepository; }