public Entretien(Creneau creneau, Recruteur recruteur, Candidat candidat, Salle salle) { this.Creneau = creneau; this.Recruteur = recruteur; this.Candidat = candidat; this.Salle = salle; }
public void Setup() { creneau = new Creneau(new DateTime(2019, 10, 10, 9, 0, 0), TimeSpan.FromHours(2)); statut = EntretienStatut.Planifier; candidatCsharp = new Candidat("yoyo", Specialite.csharp, TimeSpan.FromDays(1000)); recruteurCsharpExperimenter = new Recruteur("Arnaud", Specialite.csharp, TimeSpan.FromDays(20000)); salle1 = new Salle("Wagram", SalleStatut.Libre); salle2 = new Salle("Republique", SalleStatut.Libre); }
public void Un_recruteur_ne_peut_pas_faire_passer_entretien_où_il_a_moins_dexperience_que_le_candidat() { Recruteur recruteurCSharpSousExperimenter = new Recruteur("mickael", Specialite.csharp, TimeSpan.FromDays(700)); Assert.Throws <RecruteurSousExperimenterException>(() => new Entretien( 2, creneau, statut, candidatCsharp, recruteurCSharpSousExperimenter, salle1)); }
public void AssertThatRecruteurIsAvailableWhenNoCreneau() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js", "C" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); DateTime date = DateTime.Now; Creneau creneau = new Creneau(date, 10); Assert.True(recruteur.EstDisponible(creneau)); }
public void AssertThatRecruteurHasCrenauxAfterAddedOne() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js", "C" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); DateTime date = DateTime.Now; Creneau creneau = new Creneau(date, 10); bool ajoutCreneau = recruteur.AjouterIndisponibilite(creneau); Assert.True(ajoutCreneau); }
public void AssertThatRecruteurIsNotAvailableIfTwiceSameCreneau() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js", "C" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); DateTime date = DateTime.Now; Creneau creneau = new Creneau(date, 10); recruteur.AjouterIndisponibilite(creneau); Assert.False(recruteur.EstDisponible(creneau)); }
public void AssertThatRecruteurCanTestIfSameTechAndMoreExperience() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js", "C" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); Personne candidatPersonne = new Personne("Robin", "Soldé"); string[] candidatCompetence = { "C", ".Net" }; Profil candidatProfil = new Profil(new List <string>(candidatCompetence), 5); Candidat candidat = new Candidat(candidatPersonne, candidatProfil); Assert.True(recruteur.PeutTester(candidat)); }
public void AssertThatRecruteurCannotTestCandidatIfDifferentTech() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); Personne candidatPersonne = new Personne("Robin", "Soldé"); string[] candidatCompetence = { "C", "Ruby" }; Profil candidatProfil = new Profil(new List <string>(candidatCompetence), 5); Candidat candidat = new Candidat(candidatPersonne, candidatProfil); Assert.False(recruteur.PeutTester(candidat)); }