Exemplo n.º 1
0
        private void Init(int id, string criterionDescription, ScoreRange scoreRange)
        {
            if (String.IsNullOrWhiteSpace(criterionDescription))
            {
                throw new ApplicationException("A score criterion cannot be constructed without a criterion description.");
            }

            Id = id;
            CriterionDescription = criterionDescription;
            ScoreRange           = scoreRange;
        }
Exemplo n.º 2
0
 public ScoreCriterion(string criterionDescription, ScoreRange scoreRange)
 {
     Init(0, criterionDescription, scoreRange);
 }
Exemplo n.º 3
0
 public ScoreCriterion(int id, string criterionDescription, ScoreRange scoreRange)
 {
     Init(id, criterionDescription, scoreRange);
 }