示例#1
0
 public Credential(string name, string description, string credentialCode, ValidPeriod validPeriod,
                   bool isReimbursable)
 {
     CredentialCode = credentialCode;
     UpdateDetails(name, description, isReimbursable);
     ChangeValidPeriod(validPeriod);
 }
示例#2
0
        public Course(string title, string description, ValidPeriod validPeriod, Grade lowGrade, Grade highGrade)
        {
            var gradeResult = ChangeGradeRange(lowGrade, highGrade);

            if (gradeResult.IsFailure)
            {
                throw new ArgumentException("Low Grade is higher than High Grade");
            }

            ChangeValidPeriod(validPeriod);
            UpdateDetails(title, description);
            ChangeValidPeriod(validPeriod);
        }
示例#3
0
        public void AssignProgram(Program careerTechProgram, ValidPeriod validPeriod)
        {
            ProgramAssignment assignment = _programAssignments.FirstOrDefault(x => x.Program == careerTechProgram);

            if (assignment != null)
            {
                return;
            }

            var newAssignment = new ProgramAssignment(careerTechProgram, this, validPeriod);

            _programAssignments.Add(newAssignment);
        }
示例#4
0
 public void ChangeValidPeriod(ValidPeriod validPeriod)
 {
     ValidPeriod = validPeriod;
 }
示例#5
0
 public Cluster(string name, string description, string clusterCode, ValidPeriod validPeriod)
 {
     ClusterCode = clusterCode;
     UpdateDetails(name, description);
     ChangeValidPeriod(validPeriod);
 }