Beispiel #1
0
        public NotesBarModel(IAnnotationRepository repository, NotesToRecordMapping mapping)
        {
            _repository = repository;
            _mapping = mapping;

            repository.AddObserver(this, new NullProgress());
        }
Beispiel #2
0
        public NotesBarModel(IAnnotationRepository repository, NotesToRecordMapping mapping)
        {
            _repository = repository;
            _mapping    = mapping;

            repository.AddObserver(this, new NullProgress());
        }
Beispiel #3
0
 public UnitOfWork(NoisContext context,
                   IRefreshTokenRepository refreshTokenRepository,
                   IAnnotationRepository annotationRepository,
                   IAnswerRepository answerRepository,
                   IEssayAnswerRepository essayAnswerRepository,
                   IEssayExerciseRepository essayExerciseRepository,
                   ILogRepository logRepository,
                   IMultipleChoicesAnswerRepository multipleChoicesAnswerRepository,
                   IMultipleChoicesExerciseRepository multipleChoicesExerciseRepository,
                   IStudentRepository studentRepository,
                   ITestRepository testRepository
                   )
 {
     Context = context;
     RefreshTokenRepository            = refreshTokenRepository;
     AnnotationRepository              = annotationRepository;
     AnswerRepository                  = answerRepository;
     EssayExerciseRepository           = essayExerciseRepository;
     LogRepository                     = logRepository;
     MultipleChoicesExerciseRepository = multipleChoicesExerciseRepository;
     StudentRepository                 = studentRepository;
     TestRepository                    = testRepository;
     EssayAnswerRepository             = essayAnswerRepository;
     MultipleChoicesAnswerRepository   = multipleChoicesAnswerRepository;
 }
 public AnnotationCommandHandler(IAnnotationRepository annotationRepository,
                                 IUnitOfWork uow,
                                 IMediatorHandler mediator,
                                 INotificationHandler <DomainNotification> notifications)
     : base(uow, mediator, notifications)
 {
     _annotationRepository = annotationRepository;
     _mediator             = mediator;
 }
 public AnnotationCommandHandler(IAnnotationRepository annotationRepository,
                                 IUnitOfWork uow,
                                 IBus bus,
                                 IDomainNotificationHandler <DomainNotification> notifications)
     : base(uow, bus, notifications)
 {
     _annotationRepository = annotationRepository;
     _bus = bus;
 }
 public AnnotationsController(INotificationHandler <DomainNotification> notifications,
                              IMediatorHandler mediator,
                              IAnnotationRepository annotationRepository,
                              IMapper mapper) : base(notifications, mediator)
 {
     _annotationRepository = annotationRepository;
     _mapper   = mapper;
     _mediator = mediator;
 }
Beispiel #7
0
        public HRCaseController(IHRCaseRepository repository, ICaseTypeRepository caseTypeRepository, IUserRepository userRepository, IQuestionRepository questionRepository, IAnnotationRepository annotationRepository
                                , IMapper mapper
                                , LinkGenerator linkGenerator, IOptions <Dynamics> settings, ModelAccessor modelAccessor, IConfiguration config, IStringLocalizer <HRCaseController> localizer) : base(modelAccessor)
        {
            _repository           = repository;
            _caseTypeRepository   = caseTypeRepository;
            _userRepository       = userRepository;
            _questionRepository   = questionRepository;
            _annotationRepository = annotationRepository;
            _linkGenerator        = linkGenerator;
            _appSettings          = settings.Value;
            _mapper = mapper;

            _fileSizeLimit = config.GetValue <long>("FileSizeLimit");
            _localizer     = localizer;
        }
 // Construct one. The primary repo is the one where new notes will be created.
 // All will be searched (and saved, etc.)
 public MultiSourceAnnotationRepository(IAnnotationRepository primary, IEnumerable <IAnnotationRepository> others)
 {
     _primary = primary;
     _others  = others.ToArray();
 }
Beispiel #9
0
 public AnnotationsController(IAnnotationRepository annotationRepository, IMapper mapper)
 {
     _annotationRepository = annotationRepository;
     _mapper = mapper;
 }
Beispiel #10
0
 internal NotesBarModel(IAnnotationRepository repository)
     : this(repository, NotesToRecordMapping.SimpleForTest())
 {
 }
 public CreateAnnotationCommandHandler(IAnnotationRepository repository)
 {
     this.repository = repository;
 }
Beispiel #12
0
 internal NotesBarModel(IAnnotationRepository repository)
     : this(repository, NotesToRecordMapping.SimpleForTest())
 {
 }
 // Construct one. The primary repo is the one where new notes will be created.
 // All will be searched (and saved, etc.)
 public MultiSourceAnnotationRepository(IAnnotationRepository primary, IEnumerable<IAnnotationRepository> others)
 {
     _primary = primary;
     _others = others.ToArray();
 }
Beispiel #14
0
 public AnnotationAppService(IBus bus, IMapper mapper, IAnnotationRepository annotationRepository)
 {
     _bus    = bus;
     _mapper = mapper;
     _annotationRepository = annotationRepository;
 }
 public GetDocumentAnnotationsQuery(IAnnotationRepository repository)
 {
     this.repository = repository;
 }