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); }
public PlanifierUnEntretien(IGenerateur <int> generateur, CreneauDto creneau, CandidatDto candidat, RecruteurDto recruteur, SalleDto salle) { entretien = new Entretien(generateur.GetNewId(), creneau, EntretienStatut.Planifier, candidat, recruteur, salle); }
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)) { }
public Salle(SalleDto dto) { Name = dto.Name; }