コード例 #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;
        }
コード例 #2
0
 public ScoreCriterion(string criterionDescription, ScoreRange scoreRange)
 {
     Init(0, criterionDescription, scoreRange);
 }
コード例 #3
0
 public ScoreCriterion(int id, string criterionDescription, ScoreRange scoreRange)
 {
     Init(id, criterionDescription, scoreRange);
 }