public AgendamentoManager() { contexto = new Contexto(); repAgendamento = new RepositorioAgendamento(contexto); repPaciente = new RepositorioPaciente(contexto); servicoAgendamento = new ServicoAgendamento(repAgendamento, repPaciente); }
public ServicoAgendamento(IRepositorioAgendamento repAgendamento, IRepositorioPaciente repPaciente) { if (repAgendamento == null) { throw new ArgumentNullException("repAgendamento"); } if (repPaciente == null) { throw new ArgumentNullException("repPaciente"); } this.repAgendamento = repAgendamento; this.repPaciente = repPaciente; }
public ServicoAgendamento(IRepositorioAgendamento repAgendamento, IRepositorioPaciente repPaciente) { if(repAgendamento == null) { throw new ArgumentNullException("repAgendamento"); } if(repPaciente == null) { throw new ArgumentNullException("repPaciente"); } this.repAgendamento = repAgendamento; this.repPaciente = repPaciente; }
public ServicoAgendamento(IRepositorioAgendamento repositorioAgendamento) : base(repositorioAgendamento) { _repositorioAgendamento = repositorioAgendamento; }
public ServicoDeConsultaDeDadosDePaciente(IRepositorioAgendamento repositorioAgendamento) { _repositorioAgendamento = repositorioAgendamento; }