Example #1
0
 public ExerciseController(IExercisesContext ctx, IExerciser exerciser, IQueryTester tester) :
     base(ctx)
 {
     _context   = ctx;
     _exerciser = exerciser;
     _tester    = tester;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExerciseService"/> class.
 /// </summary>
 /// <param name="exerciseContext">An instance of <see cref="IExercisesContext"/>.</param>
 /// <param name="exercisePoolService">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="exercisePoolService"/>
 /// or <paramref name="assemblyContext"/> is null.</exception>
 public ExerciseService(
     IExercisesContext exerciseContext,
     IExercisePoolService exercisePoolService,
     ITestAssemblyContext assemblyContext)
 {
     _exercisesContext    = exerciseContext ?? throw new ArgumentNullException(nameof(exerciseContext));
     _exercisePoolService = exercisePoolService ?? throw new ArgumentNullException(nameof(exercisePoolService));
     _assemblyContext     = assemblyContext ?? throw new ArgumentNullException(nameof(assemblyContext));
 }
 public DiagramController(IExercisesContext ctx, IQueryTester tester)
 {
     _context = ctx;
     _tester  = tester;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExercisePoolService"/> class.
 /// </summary>
 /// <param name="exerciseContext">An instance of <see cref="IExercisesContext"/>.</param>
 /// <exception cref="ArgumentNullException">Exception thrown when
 /// <paramref name="exerciseContext"/> is null.</exception>
 public ExercisePoolService(IExercisesContext exerciseContext)
 {
     _exerciseContext = exerciseContext ?? throw new ArgumentNullException(nameof(exerciseContext));
 }
Example #5
0
 /// <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="IExercisesContext"/></param>
 /// <exception cref="ArgumentNullException">Exception thrown when
 /// <paramref name="taskRunner"/> or <paramref name="context"/> is null.</exception>
 public CandidateTaskEvaluationService(ICandidateTaskRunner taskRunner, IExercisesContext context)
 {
     _context    = context ?? throw new ArgumentNullException(nameof(context));
     _taskRunner = taskRunner ?? throw new ArgumentNullException(nameof(taskRunner));
 }
 public UserAccessController(IExercisesContext ctx)
 {
     _context = ctx;
 }
Example #7
0
 public AccountController(IIdentintyProvider provider, IExercisesContext ctx)
     : base(ctx)
 {
     _identityProvider = provider;
     _context          = ctx;
 }
Example #8
0
 public IdentityProvider(IExercisesContext context, IHasher hasher, IMailService service)
 {
     _context     = context;
     _hasher      = hasher;
     _mailService = service;
 }
Example #9
0
 private void EnableMock() =>
 _mockedObject = _mockedObject ?? _dbMock.Object;
Example #10
0
 public SeedController(IExercisesContext ctx, IQueryTester tester)
 {
     _tester  = tester;
     _context = ctx;
 }
Example #11
0
 public PickerController(IExercisesContext ctx, IStorage storage)
 {
     _storage         = storage;
     _context         = ctx;
     _storage.Session = Session;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CandidateExercisesResultsService"/> class.
 /// </summary>
 /// <param name="context">An instance of <see cref="IExercisesContext"/>.</param>
 /// <exception cref="ArgumentNullException">Exception thrown when
 /// <paramref name="context"/>is null.</exception>
 public CandidateExercisesResultsService(IExercisesContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }