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 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)); }