public Credential(string name, string description, string credentialCode, ValidPeriod validPeriod, bool isReimbursable) { CredentialCode = credentialCode; UpdateDetails(name, description, isReimbursable); ChangeValidPeriod(validPeriod); }
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); }
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); }
public void ChangeValidPeriod(ValidPeriod validPeriod) { ValidPeriod = validPeriod; }
public Cluster(string name, string description, string clusterCode, ValidPeriod validPeriod) { ClusterCode = clusterCode; UpdateDetails(name, description); ChangeValidPeriod(validPeriod); }