public CourseOutCompetency(Competency competency, double level) { //Id = IdHelper.Instance.GetNextId<CourseOutCompetency>(); Competency = competency; if (Competency.IsValid(level)) { Level = level; } else { throw new ArgumentException("Cannot match the specified 'level' with the specified 'competency'."); } }
public JobTitleCompetency(Competency competency, double level, double weight) { //Id = IdHelper.Instance.GetNextId<JobTitleCompetency>(); Competency = competency; if (Competency.IsValid(level)) { Level = level; } else { throw new ArgumentException("Cannot match the specified 'level' with the specified 'competency'."); } Weight = weight; }