/// <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."); }
public ScoringService( IProjectRepository projectRepository, IScoringOffersManagerContractClient scoringOffersManagerContractClient, IScoringsRegistryContractClient scoringsRegistryContractClient, IClock clock, IScoringRepository scoringRepository, IUserRepository userRepository) { _projectRepository = projectRepository; _scoringOffersManagerContractClient = scoringOffersManagerContractClient; _scoringsRegistryContractClient = scoringsRegistryContractClient; _clock = clock; _scoringRepository = scoringRepository; _userRepository = userRepository; }
public EstimationService( IScoringContractClient scoringContractClient, IScoringRepository scoringRepository, IProjectRepository projectRepository, IExpertRepository expertRepository, IClock clock, IScoringCriterionRepository scoringCriterionRepository, IScoringApplicationRepository scoringApplicationRepository) { _scoringContractClient = scoringContractClient; _scoringRepository = scoringRepository; _projectRepository = projectRepository; _expertRepository = expertRepository; _clock = clock; _scoringCriterionRepository = scoringCriterionRepository; _scoringApplicationRepository = scoringApplicationRepository; }
/// <summary> /// Initializes a new instance of the <see cref="ScoringQueryInteractor"/> class. /// </summary> /// <param name="scoringRepository">The scoring repository.</param> /// <param name="logging">The logging.</param> public ScoringQueryInteractor(IScoringRepository scoringRepository, ILoggingService logging) : base(logging) { Validate.IsNotNull(scoringRepository, nameof(scoringRepository)); this.scoringRepository = scoringRepository; }
public ScoringService(IScoringRepository scoringRepository) { _scoringRepository = scoringRepository; }