Exemple #1
0
        protected Answer SetAnswer(
            string questionId,
            Severity?severity       = null,
            string text             = null,
            Progression?progression = null)
        {
            if (text == null)
            {
                text = Randomize.String();
            }

            Answer answer = _mutation.SetAnswer(
                questionId: questionId,
                severity: severity.GetValueOrDefault(Randomize.Severity()),
                text: text,
                progression: progression.GetValueOrDefault(Randomize.Progression())
                );

            return(answer);
        }