/// <summary> /// Initializes a new instance of the <see cref="ExerciseService"/> class. /// </summary> /// <param name="exerciseContext">An instance of <see cref="ICandidateExerciseContext"/>.</param> /// <param name="exercisePool">An instance of <see cref="IExercisePoolService"/>.</param> /// <param name="assemblyContext">An instance of <see cref="ITestAssemblyContext"/>.</param> /// <exception cref="ArgumentNullException">Exception thrown when /// <paramref name="exerciseContext"/>, <paramref name="exercisePool"/> /// or <paramref name="assemblyContext"/> is null.</exception> public ExerciseService( ICandidateExerciseContext exerciseContext, IExercisePoolService exercisePool, ITestAssemblyContext assemblyContext) { _exerciseContext = exerciseContext ?? throw new ArgumentNullException(nameof(exerciseContext)); _exercisePool = exercisePool ?? throw new ArgumentNullException(nameof(exercisePool)); _assemblyContext = assemblyContext ?? throw new ArgumentNullException(nameof(assemblyContext)); }
/// <summary> /// Initializes a new instance of the <see cref="CandidateExercisesResultsService"/> class. /// </summary> /// <param name="context">An instance of <see cref="ICandidateExerciseContext"/>.</param> /// <exception cref="ArgumentNullException">Exception thrown when /// <paramref name="context"/>is null.</exception> public CandidateExercisesResultsService(ICandidateExerciseContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
/// <summary> /// Initializes a new instance of the <see cref="CandidateTaskEvaluationService"/> class. /// </summary> /// <param name="taskRunner">An instance of <see cref="ICandidateTaskRunner"/>.</param> /// <param name="context">An instance of <see cref="ICandidateExerciseContext"/></param> /// <exception cref="ArgumentNullException">Exception thrown when /// <paramref name="taskRunner"/> or <paramref name="context"/> is null.</exception> public CandidateTaskEvaluationService(ICandidateTaskRunner taskRunner, ICandidateExerciseContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _taskRunner = taskRunner ?? throw new ArgumentNullException(nameof(taskRunner)); }
/// <summary> /// Initializes a new instance of the <see cref="ExercisePoolService"/> class. /// </summary> /// <param name="exerciseContext">An instance of <see cref="ICandidateExerciseContext"/>.</param> /// <exception cref="ArgumentNullException">Exception thrown when /// <paramref name="exerciseContext"/> is null.</exception> public ExercisePoolService(ICandidateExerciseContext exerciseContext) { _exerciseContext = exerciseContext ?? throw new ArgumentNullException(nameof(exerciseContext)); }