public AgendamentoManager()
 {
     contexto           = new Contexto();
     repAgendamento     = new RepositorioAgendamento(contexto);
     repPaciente        = new RepositorioPaciente(contexto);
     servicoAgendamento = new ServicoAgendamento(repAgendamento, repPaciente);
 }
 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;
        }
Esempio n. 5
0
 public ServicoAgendamento(IRepositorioAgendamento repositorioAgendamento)
     : base(repositorioAgendamento)
 {
     _repositorioAgendamento = repositorioAgendamento;
 }
 public ServicoDeConsultaDeDadosDePaciente(IRepositorioAgendamento repositorioAgendamento)
 {
     _repositorioAgendamento = repositorioAgendamento;
 }
 public ServicoDeConsultaDeDadosDePaciente(IRepositorioAgendamento repositorioAgendamento)
 {
     _repositorioAgendamento = repositorioAgendamento;
 }