public bool CheckIfCandidateIsTemporarilyQualified(EnrollingCandidate candidate) { Debug.Assert(candidate.CurrentOption == this); if (tempAdmittedCandidates.Count < quota) { if (tempAdmittedCandidates.Count == quota - 1) cutOff = candidate.CurrentScore; return true; } return candidate.CurrentScore >= cutOff; }
public void AddToTempListAndSort(EnrollingCandidate candidate) { tempAdmittedCandidates.Add(candidate); tempAdmittedCandidates.Sort(); }