public EditTemplateViewModel(RouterService router, IQuestionRepository questionRepository, IQuestionTypeRepository questionTypeRepository, IAnswerSetValueRepository answerSetValueRepository, IChecklistRepository checklistRepository, IChecklistQuestionRepository checklistQuestionRepository) { _questionRepository = questionRepository; _answerSetValueRepository = answerSetValueRepository; _checklistRepository = checklistRepository; _checklistQuestionRepository = checklistQuestionRepository; _router = router; AddExistingQuestionCommand = new RelayCommand(AddExistingQuestion, () => SelectedExistingQuestion != null); AddNewQuestionCommand = new RelayCommand(AddNewQuestion, () => SelectedQuestionType != null); SaveTemplateCommand = new RelayCommand(SaveTemplate); CancelCommand = new RelayCommand(_router.GoBack); RemoveSelectedQuestionCommand = new RelayCommand(RemoveSelectedQuestion); ExistingQuestions = new ObservableCollection <Database.Question>(); QuestionTypes = new ObservableCollection <QuestionType>(questionTypeRepository.All()); TemplateQuestions = new ObservableCollection <ChecklistQuestion>(); ControlList = new ObservableCollection <ITemplateWrapper>(); SelectedQuestionType = QuestionTypes.Count > 0 ? QuestionTypes[0] : null; }
public void MyTestInitialize() { this.scope = new TransactionScope(TransactionScopeOption.RequiresNew); var context = new FactWebContext(); this.repository = new QuestionTypeRepository(context); }
public QuizsController(IQuizRepository repo, ICategoryRepository repoCat, ISubCategoryRepository repoSubCat, ILevelRepository repoLevel, IQuestionTypeRepository repoQuestionType) { _repo = repo; _repoCat = repoCat; _repoLevel = repoLevel; _repoSubCat = repoSubCat; _repoQuestionType = repoQuestionType; }
public UserService( IRoleRepository roleRepository, IQuestionTypeRepository questionTypeRepository, ITestingAreaRepository testingAreaRepository ) { this.roleRepository = roleRepository; this.questionTypeRepository = questionTypeRepository; this.testingAreaRepository = testingAreaRepository; }
public SurveyedService(ISurveyedRepository entityRepository, IPersonSurveyedRepository personSurveyedRepository, IAnswerRepository answerRepository, IBranchOfficeRepository branchOfficeRepository, IQuestionRepository questionRepository, IQuestionOptionRepository questionOptionRepository, IQuestionTypeRepository questionTypeRepository) { this.entityRepository = entityRepository; this.personSurveyedRepository = personSurveyedRepository; this.answerRepository = answerRepository; this.branchOfficeRepository = branchOfficeRepository; this.questionRepository = questionRepository; this.questionOptionRepository = questionOptionRepository; this.questionTypeRepository = questionTypeRepository; }
public QuestionTypesController(IQuestionTypeRepository repo) { _repo = repo; }
public QuestionTypeService(IQuestionTypeRepository questionTypeRepository) { this.questionTypeRepository = questionTypeRepository; }
public QuestionTypeController(QuestionTypeService questionTypeService, IQuestionTypeRepository questionTypeRepository) { QuestionTypeService = questionTypeService; QuestionTypeRepository = questionTypeRepository; }
/// <summary> /// /// </summary> /// <param name="questionTypeRepository"></param> /// <param name="questionBankRepository"></param> /// <param name="mapper"></param> public QuestionBanksController(IQuestionTypeRepository questionTypeRepository, IQuestionBankRepository questionBankRepository, IMapper mapper) { _questionBankRepository = questionBankRepository; _questionTypeRepository = questionTypeRepository; _mapper = mapper; }
public QuestionTypeService(IQuestionTypeRepository repository) { _repository = repository; }
public QuestionTypeService(IQuestionTypeRepository entityRepository) { this.entityRepository = entityRepository; }
public QuestionTypeService(IMapper mapper, IQuestionTypeRepository questionTypeRepository) { this.mapper = mapper; this.questionTypeRepository = questionTypeRepository; }
public QuestionTypeManager(IQuestionTypeRepository questionTypeRepository) { _questionTypeRepository = questionTypeRepository; }
public QuestionTypeService(IQuestionTypeRepository questionTypeRepository) { QuestionTypeRepository = questionTypeRepository; }
public QuestionTypeService(IQuestionTypeRepository questionTypeRepo) { _questionTypeRepo = questionTypeRepo; }
public QuestionTypeController(IQuestionTypeRepository questionTypeRepository) { _questionTypeRepository = questionTypeRepository; }
public QuestionOptionService(IQuestionRepository repository, IQuestionTypeRepository qtrepository) { _repository = repository; _qtrepository = qtrepository; }