public TableQuestionViewModel(TableQuestion question, IQuestionRepository questionRepository,
                               TableQuestionFactory tableQuestionFactory) :
     base(question)
 {
     _question             = question;
     _questionRepository   = questionRepository;
     _tableQuestionFactory = tableQuestionFactory;
     KeyUnit   = KeyUnits.FirstOrDefault();
     ValueUnit = KeyValues.FirstOrDefault();
     Choices   = new MultipleChoiceQuestionViewModel(new MultipleChoiceQuestion(), questionRepository)
     {
         Description = "TableMultipleChoice"
     };
 }
Esempio n. 2
0
        public QuestionFactory(IQuestionRepository questionRepository, IPictureRepository pictureRepository, TableQuestionFactory tableQuestionFactory)
        {
            _questionRepository   = questionRepository;
            _pictureRepository    = pictureRepository;
            _tableQuestionFactory = tableQuestionFactory;

            _questions = new List <string>
            {
                "Open",
                "Meerkeuze",
                "Foto",
                "Schaal",
                "Tabel",
                "Meet",
                "Teken",
                "Categorie"
            };
        }