Esempio n. 1
0
        public void Init()
        {
            Question = new PictureQuestion()
            {
                Questionnaire = new Questionnaire()
                {
                    Id = Guid.Empty.ToString()
                }
            };

            MockRepo = new Mock <IQuestionRepository>();
            MockRepo.Setup(elem => elem.InsertAsync(Question)).Returns(Task.CompletedTask);
            PictureVM = new PictureQuestionViewModel(Question, MockRepo.Object);
        }
Esempio n. 2
0
	// Use this for initialization
	void Start () {
		 isredready = false;
		 isblueready = false;

		//thisIsTheEnd = false;
		Loading.SetActive (false);
		PictureQuestion.SetActive (false);
		scorePanel.SetActive(false);
		StarPanel.SetActive (false);
		doMath ();
		
		
		
		
	} //end start
 public PictureQuestionViewModel(PictureQuestion question, IQuestionRepository questionRepository) : base(question)
 {
     _question           = question;
     _questionRepository = questionRepository;
 }