Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }