Ejemplo n.º 1
0
 public AnswerManager(IAnswerRepository asnwerRepository, ISurveyRepository surveyRepository,
                      IDescriptionGeneratorService surveyVerificationService)
 {
     _asnwerRepository          = asnwerRepository;
     _surveyRepository          = surveyRepository;
     _surveyVerificationService = surveyVerificationService;
 }
Ejemplo n.º 2
0
 public ExamsController(IExamRepository examRepository, IAnswerRepository answerRepository, IStatistics statistics, AppConfig config)
 {
     this.examRepository   = examRepository;
     this.answerRepository = answerRepository;
     this.config           = config;
     this.statistics       = statistics;
 }
Ejemplo n.º 3
0
 public LMSSupervisor(
     IAdministrationRepository adminRepo,
     IAdministrationRoleRepository adminRoleRepo,
     IAnswerRepository answerRepo,
     IBlockRepository blockRepo,
     IBlockTypeRepository blockTypeRepo,
     ICourseRepository courseRepo,
     IDirectionRepository directionRepo,
     IGroupRepository groupRepo,
     IPageRepository pageRepo,
     IParticipantRepository participantRepo,
     IParticipantRoleRepository participantRoleRepo,
     IQuestionRepository questionRepo,
     IUserRepository userRepo)
 {
     _adminRepo           = adminRepo;
     _adminRoleRepo       = adminRoleRepo;
     _answerRepo          = answerRepo;
     _blockRepo           = blockRepo;
     _blockTypeRepo       = blockTypeRepo;
     _courseRepo          = courseRepo;
     _directionRepo       = directionRepo;
     _groupRepo           = groupRepo;
     _pageRepo            = pageRepo;
     _participantRepo     = participantRepo;
     _participantRoleRepo = participantRoleRepo;
     _questionRepo        = questionRepo;
     _userRepo            = userRepo;
 }
Ejemplo n.º 4
0
 public QuestionsViewModel(IAnswerRepository answerRepository, ICategoriesRepository categoriesRepository, IQuestionsRepository questionsRepository)
 {
     _answerRepository     = answerRepository;
     _categoriesRepository = categoriesRepository;
     _questionsRepository  = questionsRepository;
     SetInitialData();
 }
Ejemplo n.º 5
0
 public CommentCommandHandler(
     IAnswerRepository repository,
     IQuestionRepository questionRepository)
 {
     _repository         = repository;
     _questionRepository = questionRepository;
 }
 public QuestionnaireService(ILogger <QuestionnaireService> logger,
                             GRA.Abstract.IDateTimeProvider dateTimeProvider,
                             IUserContextProvider userContextProvider,
                             IAnswerRepository answerRepository,
                             IBadgeRepository badgeRepository,
                             INotificationRepository notificationRepository,
                             IQuestionRepository questionRepository,
                             IQuestionnaireRepository questionnaireRepository,
                             IRequiredQuestionnaireRepository requiredQuestionnaireRepository,
                             IUserLogRepository userLogRepository)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     SetManagementPermission(Permission.ManageQuestionnaires);
     _answerRepository = answerRepository
                         ?? throw new ArgumentNullException(nameof(answerRepository));
     _badgeRepository = badgeRepository
                        ?? throw new ArgumentNullException(nameof(badgeRepository));
     _notificationRepository = notificationRepository
                               ?? throw new ArgumentNullException(nameof(notificationRepository));
     _questionRepository = questionRepository
                           ?? throw new ArgumentNullException(nameof(questionRepository));
     _questionnaireRepository = questionnaireRepository
                                ?? throw new ArgumentNullException(nameof(questionnaireRepository));
     _requiredQuestionnaireRepository = requiredQuestionnaireRepository
                                        ?? throw new ArgumentNullException(nameof(requiredQuestionnaireRepository));
     _userLogRepository = userLogRepository
                          ?? throw new ArgumentNullException(nameof(userLogRepository));
 }
 public AnswerMenu()
 {
     this.InitializeComponent();
     answerRepo = new AnswerRepository();
     picRepo    = new PictureRepository();
     PopulateAnswerList();
 }
Ejemplo n.º 8
0
 public CreateAnswerCommandHandler(IAnswerRepository answerRepository,
                                   IQuestionRepository questionRepository, IMapper mapper)
 {
     _answerRepository   = answerRepository;
     _questionRepository = questionRepository;
     _mapper             = mapper;
 }
Ejemplo n.º 9
0
 public GameDetails()
 {
     this.InitializeComponent();
     answerRepo   = new AnswerRepository();
     gameRepo     = new GameRepository();
     questionRepo = new QuestionRepository();
 }
 public WeatherForecastController(
     ILogger <WeatherForecastController> logger,
     IAnswerRepository answerRepository)
 {
     _logger           = logger;
     _answerRepository = answerRepository;
 }
 public AnswersDefinitionController(
     ILogger <AnswersDefinitionController> logger,
     IAnswerRepository repository)
 {
     _logger     = logger;
     _repository = repository;
 }
Ejemplo n.º 12
0
 public PolicePresentation(
     IPoliceRepository policeRepo,
     ICitizenRepository citizenRepo,
     IPoliceAcademyRepository policeAcademyRepo,
     IUserService userService,
     IViolationsRepository violationsRepository,
     IPoliceCallRepository policeCallRepo,
     IQuestionsRepository questionsRepo,
     IAnswerRepository answerRepo,
     IShiftRepository shiftRepo,
     IMapper mapper,
     IBlobService blobService
     )
 {
     _policeRepo           = policeRepo;
     _citizenRepo          = citizenRepo;
     _policeAcademyRepo    = policeAcademyRepo;
     _userService          = userService;
     _violationsRepository = violationsRepository;
     _policeCallRepo       = policeCallRepo;
     _questionsRepo        = questionsRepo;
     _answerRepo           = answerRepo;
     _mapper      = mapper;
     _blobService = blobService;
     _shiftRepo   = shiftRepo;
 }
 public BundleRecomendationService(ApplicationDbContext context)
 {
     _context            = context;
     _bundleRepository   = new BundleRepository(context);
     _answerRepository   = new AnswerRepository(context);
     _questionRepository = new QuestionRepository(context);
 }
Ejemplo n.º 14
0
        //private readonly ITestService _testService;


        public AnswerService(IAnswerRepository answerRepository, ICandidatRepositories candidatRepositories, ITestRepository testRepository, IPositionRepository positionRepository)
        {
            _answerRepository     = answerRepository;
            _candidatRepositories = candidatRepositories;
            _testRepository       = testRepository;
            _positionRepository   = positionRepository;
        }
Ejemplo n.º 15
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;
 }
Ejemplo n.º 16
0
        public frmAnswer(IAnswerRepository answerRepository, int questionID)
        {
            InitializeComponent();

            _answerRepository = answerRepository;
            _questionID       = questionID;
        }
Ejemplo n.º 17
0
 public SectionBuilder(ISectionUnitOfWork SectionUnitOfWork)
 {
     this._sectionUnitOfWork  = SectionUnitOfWork;
     this._questionRepository = SectionUnitOfWork.QuestionRepository;
     this._choiceRepository   = SectionUnitOfWork.ChoiceRepository;
     this._answerRepository   = SectionUnitOfWork.AnswerRepository;
 }
Ejemplo n.º 18
0
 public ScenarioService(ILogger <ScenarioService> logger,
                        IAnswerRepository answerRepository)
 {
     _logger           = logger;
     _answerRepository = answerRepository;
     _store            = new Dictionary <string, Scenario>(StringComparer.CurrentCultureIgnoreCase);
 }
Ejemplo n.º 19
0
 public QuestionProvider(IQuestionRepository questionRepository, IModuleRepository moduleRepository, IAnswerRepository answerRepository, ITestRepository testRepository)
 {
     _testRepository = testRepository;
     _questionRepository = questionRepository;
     _moduleRepository = moduleRepository;
     _answerRepository = answerRepository;
 }
Ejemplo n.º 20
0
 public AnswerRepositoryTest()
 {
     _mockService       = new Mock <IMongoService>();
     _mockMapper        = new Mock <IMapper>();
     _mockConfiguration = new Mock <IConfiguration>();
     _answerRepository  = new AnswerRepository(_mockService.Object, _mockConfiguration.Object, _mockMapper.Object);
 }
Ejemplo n.º 21
0
 public AnswerCommandHandler(
     IQuestionRepository questionRepository,
     IAnswerRepository answerRepository)
 {
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
 }
Ejemplo n.º 22
0
 public AnswerService(IAnswerRepository answerRepository,
                      IForumTopicRepository forumTopicRepository)
 {
     _answerRepository     = answerRepository;
     _forumTopicRepository = forumTopicRepository;
     _answerFactory        = new AnswerFactory();
 }
Ejemplo n.º 23
0
 public PostHandler(
     IQuestionRepository questionRepository,
     IAnswerRepository answerRepository)
 {
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
 }
Ejemplo n.º 24
0
 public CreateAnswerCommandHandler(IRepository <Question> questionRepository,
                                   IAnswerRepository answerRepository, IRepository <User> userRepository)
 {
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
     _userRepository     = userRepository;
 }
Ejemplo n.º 25
0
 public QuestionsController(IRepositoryFactory repositoryFactory )
 {
     questionRepository = repositoryFactory.GetQuestionRepository();
     userRepository = repositoryFactory.GetUserRepository();
     tagRepository = repositoryFactory.GetTagRepository();
     answerRepository = repositoryFactory.GetAnswerRepository();
     voteRepository = repositoryFactory.GetVoteRepository();
 }
Ejemplo n.º 26
0
 public DeleteAnswerCommandHandler(ICurrentUserService currentUserService,
                                   IAnswerRepository answerRepository,
                                   IAccessValidator accessValidator)
 {
     _currentUserService = currentUserService;
     _answerRepository   = answerRepository;
     _accessValidator    = accessValidator;
 }
Ejemplo n.º 27
0
 public SurveyController(IQuestionRepository questionRepository,
                         IAnswerRepository answerRepository,
                         IInterviewRepository interviewRepository)
 {
     _questionRepository  = questionRepository;
     _answerRepository    = answerRepository;
     _interviewRepository = interviewRepository;
 }
Ejemplo n.º 28
0
 public GameNew()
 {
     this.InitializeComponent();
     questionRepository = new QuestionRepository();
     gameRepo           = new GameRepository();
     answerRepository   = new AnswerRepository();
     view = new Question();
 }
Ejemplo n.º 29
0
 public QuizController(IQuizRepository quizRepository, IQuestionRepository questionRepository,
                       IAnswerRepository answerRepository, AppDbContext context)
 {
     _quizRepository     = quizRepository;
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
     _context            = context;
 }
Ejemplo n.º 30
0
 public AnswerController(
     IAnswerRepository _Answer
     , IUserRepository _user
     )
 {
     AnswerRepository = _Answer;
     userRepository   = _user;
 }
Ejemplo n.º 31
0
 public MethodsForStatistics()
 {
     user     = new UsersRepository();
     answer   = new AnswerRepository();
     question = new QuestionRepository();
     survey   = new SurveyRepository();
     context  = new Context();
 }
Ejemplo n.º 32
0
 public QuestionService(
     IQuestionRepository questionRepository,
     IAnswerRepository answerRepository
     )
 {
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
 }
Ejemplo n.º 33
0
 public QuestionsController()
 {
     questionRepository = new QuestionRepository();
     userRepository = new UserRepository();
     tagRepository = new TagRepository();
     answerRepository = new AnswerRepository();
     voteRepository = new VoteRepository();
 }
Ejemplo n.º 34
0
 public WkysController(IMembershipService membershipService, IQuestionRepository questionRepo, IQuestionOptionRepository optionRepo, IAnswerRepository answerRepo, IUserRepository userRepo, ICommentRepository commentRepo)
 {
     _membershipService = membershipService;
     _questionRepo = questionRepo;
     _optionRepo = optionRepo;
     _answerRepo = answerRepo;
     _userRepo = userRepo;
     _commentRepo = commentRepo;
 }
Ejemplo n.º 35
0
 public AccountController(IMembershipService membershipService, IQuestionRepository questionRepo, IQuestionOptionRepository optionRepo, IAnswerRepository answerRepo, IUserRepository userRepo, ICommentRepository commentRepo, IResetPasswordTokenRepository resetTokenRepo)
 {
     _membershipService = membershipService;
     _questionRepo = questionRepo;
     _optionRepo = optionRepo;
     _answerRepo = answerRepo;
     _userRepo = userRepo;
     _commentRepo = commentRepo;
     _resetTokenRepo = resetTokenRepo;
 }
Ejemplo n.º 36
0
 public ManageSpamController(INewsCommentRepository newsCommentRepository, ITipCommentRepository tipCommentRepository, IRecipeCommentRepository recipeCommentRepository, IQuestionRepository questionRepository, IAnswerRepository answerRepository, INewsRepository newsRepository, ITipRepository tipRepository, IRecipeRepository recipeRepository)
 {
     _newsCommentRepository = newsCommentRepository;
     _tipCommentRepository = tipCommentRepository;
     _recipeCommentRepository = recipeCommentRepository;
     _questionRepository = questionRepository;
     _answerRepository = answerRepository;
     _newsRepository = newsRepository;
     _tipRepository = tipRepository;
     _recipeRepository = recipeRepository;
 }
Ejemplo n.º 37
0
 public ProblemController(IProblemRepository problemRepository, ICategoryRepository categoryRepository, IAnswerRepository answerRepository, IUserSolvedRepository userSolvedRepository, IUserAttemptedRepository userAttemptedRepository, IImageRepository imageRepository, ITagRepository tagRepository, ILikeRepository likeRepository, IDislikeRepository dislikeRepository, ICommentRepository commentRepository)
 {
     this.problemRepository = problemRepository;
     this.categoryRepository = categoryRepository;
     this.answerRepository = answerRepository;
     this.userAttemptedRepository = userAttemptedRepository;
     this.userSolvedRepository = userSolvedRepository;
     this.tagRepository = tagRepository;
     this.imageRepository = imageRepository;
     this.likeRepository = likeRepository;
     this.dislikeRepository = dislikeRepository;
     this.commentRepository = commentRepository;
 }
Ejemplo n.º 38
0
 public QuestionCrudViewModel(IAnswerRepository answerRepository, ICategoryRepository categoryRepository,
     IQuestionRepository questionRepository)
 {
     if (answerRepository == null)
         throw new ArgumentNullException(nameof(answerRepository));
     if (categoryRepository == null)
         throw new ArgumentNullException(nameof(categoryRepository));
     if (questionRepository == null)
         throw new ArgumentNullException(nameof(questionRepository));
     _answerRepository = answerRepository;
     _categoryRepository = categoryRepository;
     _questionRepository = questionRepository;
     Initialize();
 }
Ejemplo n.º 39
0
 public DataFactory(
     IRadvillContext context, 
     IUserRepository userRepository, 
     ICategoryRepository categoryRepository, 
     IQuestionRepository questionRepository, 
     IAnswerRepository answerRepository, 
     IPendingQuestionRepository pendingQuestionRepository,
     IAdvisorProfileRepository advisorProfileRepository)
 {
     _context = context;
     UserRepository = userRepository;
     CategoryRepository = categoryRepository;
     QuestionRepository = questionRepository;
     AnswerRepository = answerRepository;
     PendingQuestionRepository = pendingQuestionRepository;
     AdvisorProfileRepository = advisorProfileRepository;
 }
 public AnswerService(IUnitOfWork uow, IAnswerRepository answerRepository)
 {
     this.uow = uow;
     this.answerRepository = answerRepository;
 }
Ejemplo n.º 41
0
 public HelpMarkerService(IHelpMarkerRepository helpMarkerRepository,
     IAnswerRepository answerRepository)
 {
     this.helpMarkerRepository = helpMarkerRepository;
     this.answerRepository = answerRepository;
 }
Ejemplo n.º 42
0
 public HomeController(
     IAnswerRepository answerRepository)
 {
     _answerRepository = answerRepository;
 }
Ejemplo n.º 43
0
 public AnswerAppService(IAnswerRepository context)
 {
     _repository = context;
 }
Ejemplo n.º 44
0
 public AnswersController(IAnswerRepository answerRepository, IQuestionRepository questionRepository, IAnswersQuery answersQuery)
 {
     _answerRepository = answerRepository;
     _questionRepository = questionRepository;
     _answersQuery = answersQuery;
 }
Ejemplo n.º 45
0
 public QuestionsController(IQuestionRepository repo1, IAnswerRepository repo2)
 {
     _qRepo = repo1;
     _aRepo = repo2;
 }
Ejemplo n.º 46
0
 public AnswerProvider(IQuestionRepository questionRepository, IAnswerRepository answerRepository)
 {
     _questionRepository = questionRepository;
     _answerRepository = answerRepository;
 }
 public TestingService(IThemeRepository themeRepository, IQuestionRepository questionRepository, IAnswerRepository answerRepository)
 {
     this.themeRepository = themeRepository;
     this.answerRepository = answerRepository;
     this.questionRepository = questionRepository;
 }
Ejemplo n.º 48
0
 public PortfolioController(ICacheRepository caches, IAnswerRepository answers)
 {
     this.caches = caches;
     this.answers = answers;
 }
 public AnswerService(IAnswerRepository answerRepository, IUnitOfWork unitOfWork)
 {
     AnswerRepository = answerRepository;
     UnitOfWork = unitOfWork;
 }
Ejemplo n.º 50
0
 public AnswerService(IAnswerRepository repository)
 {
     Repository = repository;
 }