internal Entretien(int id, Creneau creneau, EntretienStatut statut, Candidat candidat, Recruteur recruteur, Salle salle) { if (recruteur.specialite != candidat.specialite) { throw new SpecialiteIncompatibleException(); } if (recruteur.experience <= candidat.experience) { throw new RecruteurSousExperimenterException(); } if (salle.statut == SalleStatut.Occupee) { throw new SalleOccuperException(); } this.id = id; this.creneau = creneau; this.statut = statut; this.recruteur = recruteur; this.candidat = candidat; this.salle = salle; }
public void Replanifier(CreneauDto creneau) { this.creneau = new Creneau(creneau.date, creneau.duree); statut = EntretienStatut.Replanifier; }