Exemplo n.º 1
0
        public void Setup()
        {
            CreneauDto creneau = new CreneauDto
            {
                date  = new DateTime(2019, 10, 9, 10, 00, 00),
                duree = TimeSpan.FromHours(2)
            };

            CandidatDto candidat = new CandidatDto
            {
                experience = TimeSpan.FromDays(500),
                name       = "Willy",
                specialite = Specialite.csharp
            };

            RecruteurDto recruteur = new RecruteurDto
            {
                experience = TimeSpan.FromDays(5000),
                name       = "Yohan",
                specialite = Specialite.csharp
            };

            SalleDto salle = new SalleDto {
                name = "kilimanjaro", statut = SalleStatut.Libre
            };

            genMock = new Mock <IGenerateur <int> >();
            genMock.Setup(gen => gen.GetNewId()).Returns(1);
            planifierUnEntretien = new PlanifierUnEntretien(genMock.Object, creneau, candidat, recruteur, salle);
        }
Exemplo n.º 2
0
 public PlanifierUnEntretien(IGenerateur <int> generateur,
                             CreneauDto creneau,
                             CandidatDto candidat,
                             RecruteurDto recruteur,
                             SalleDto salle)
 {
     entretien = new Entretien(generateur.GetNewId(),
                               creneau,
                               EntretienStatut.Planifier,
                               candidat,
                               recruteur,
                               salle);
 }
Exemplo n.º 3
0
 public Entretien(int id,
                  CreneauDto creneau,
                  EntretienStatut statut,
                  CandidatDto candidat,
                  RecruteurDto recruteur,
                  SalleDto salle)
     : this(id,
            new Creneau(creneau.date, creneau.duree),
            statut,
            new Candidat(candidat.name, candidat.specialite, candidat.experience),
            new Recruteur(recruteur.name, recruteur.specialite, recruteur.experience),
            new Salle(salle.name, salle.statut))
 {
 }
Exemplo n.º 4
0
 public Salle(SalleDto dto)
 {
     Name = dto.Name;
 }