public void InformarAtendente(Atendente atendente) { if (atendente == null) { throw new ArgumentNullException(nameof(atendente)); } Atendente = atendente; }
public Agendamento AgendarExame(Atendente atendente, Paciente paciente, Medico medico, IList <Exame> exames) { InformarAtendente(atendente); InformarMedico(medico); InformarPaciente(paciente); foreach (var exame in exames) { ((List <Exame>)Exames).Add(exame); } return(this); }
public Agendamento AgendarExame(Atendente atendente, Paciente paciente, Medico medico, IList<Exame> exames) { InformarAtendente(atendente); InformarMedico(medico); InformarPaciente(paciente); foreach (var exame in exames) { ((List<Exame>)Exames).Add(exame); } return this; }
public void InformarAtendente(Atendente atendente) { if (atendente == null) throw new ArgumentNullException(nameof(atendente)); Atendente = atendente; }