public VoluntarioBasicoController(IVoluntarioBasicoService voluntarioService, IPacienteService pacienteService, IVoluntarioMedicoService voluntarioMedico, IVoluntarioAsociacionService voluntarioAsociacion) { _pacienteService = pacienteService; _voluntarioService = voluntarioService; _voluntarioMedico = voluntarioMedico; _voluntarioAsociacion = voluntarioAsociacion; }
public ConsultaController( IConsultaService consultaService , IPacienteService pacienteService) { _consultaService = consultaService; _pacienteService = pacienteService; }
public LoginController(IPacienteService pacienteService, IVoluntarioBasicoService voluntarioBasicoService, IVoluntarioMedicoService voluntarioMedicoService, IVoluntarioAsociacionService voluntarioAsociacionService) { _pacienteService = pacienteService; _voluntarioBasicoService = voluntarioBasicoService; _voluntarioMedicoService = voluntarioMedicoService; _voluntarioAsociacionService = voluntarioAsociacionService; }
public EventoService(DataContext context, IVoluntarioBasicoService voluntarioBasicoService, IVoluntarioMedicoService voluntarioMedicoService, IPacienteService pacienteService) { _context = context; _voluntarioBasicoService = voluntarioBasicoService; _voluntarioMedicoService = voluntarioMedicoService; _pacienteService = pacienteService; }
public PessoaController(IPacienteService pacienteService, IFuncionarioService funcionarioService, IUsuarioService usuarioService) { this._pacienteService = pacienteService; this._funcionarioService = funcionarioService; this._usuarioService = usuarioService; }
public ConsultaController(IPacienteService pacienteService, IPrimeraVisitaService primeraVisitaService, IConsultaService consultaService, ILog log) { _pacienteService = pacienteService; _primeraVisitaService = primeraVisitaService; _consultaService = consultaService; _log = log; }
/**Constructor para controlador que necesita flexibilidad en los contextos y uso de UnitOfWork*/ public PacientesController(ApplicationDbContext db, ILogger <PacientesController> logger, IConfiguration configuration) { ApplicationDbContext _context = db; _service = new PacienteService(new UnitOfWorkContainer(_context), new PacienteRepository(_context)); _logger = logger; _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); }
public SynchManager(IRestService service, IMedicoService medicoService, IPacienteService pacienteService) { _restService = service; _medicoService = medicoService; _pacienteService = pacienteService; }
public PacienteServiceTest() { var mock = new MockFactory(); _pacienteRepositoryMock = mock.CreateMock <IPacienteRepository>(); _pacienteService = new PacienteService(_pacienteRepositoryMock.MockObject); }
public PacientesController(IPacienteService pacienteService, IPaisService paisService, IEstadoService estadoService, ICidadeService cidadeService) { _pacienteService = pacienteService; _paisService = paisService; _estadoService = estadoService; _cidadeService = cidadeService; }
public ReporteService(DataContext context, IVoluntarioBasicoService voluntarioService, IVoluntarioMedicoService voluntarioMedicoService, IVoluntarioAsociacionService voluntarioAsociacionService, IPacienteService pacienteService, IEspecialidadService especialidadService) { _context = context; _voluntarioService = voluntarioService; _voluntarioMedicoService = voluntarioMedicoService; _voluntarioAsociacionService = voluntarioAsociacionService; _pacientenService = pacienteService; _especialidadService = especialidadService; }
public PacienteController(IPacienteService pacienteService, ILogger <PacienteController> logger, IOptions <ApiSettings> apiSettings) { _pacienteService = pacienteService; _logger = logger; _apiSettings = apiSettings; _unavailable = _apiSettings.Value.UnavailableMessage; }
public RelatorioController(IProntuarioService service, IPacienteService servicePaciente, ICadastroService serviceCadastro, IUsuarioService serviceUsuario, IFuncionarioService serviceFuncionario, IRelatorioService serviceRelatorio) : base(serviceUsuario) { _service = service; _servicePaciente = servicePaciente; _serviceCadastro = serviceCadastro; _serviceFuncionario = serviceFuncionario; _serviceRelatorio = serviceRelatorio; _serviceUsuario = serviceUsuario; }
public PacientesController(IPacienteRepository pacientesRepository, IMapper mapper, IPacienteService pacienteService, INotificador notificador) : base(notificador) { _pacientesRepository = pacientesRepository; _mapper = mapper; _pacientesService = pacienteService; }
public ConsultasController( IConsultaService consultaService, IMedicoService medicoService, IPacienteService pacienteService ) { _consultaService = consultaService; _medicoService = medicoService; _pacienteService = pacienteService; }
public NotificacaoIncidenteController( INotificacaoIncidenteService notificacaoIncidenteService, ISetorService setorService, IPacienteService pacienteService, IMapper mapper) { _notificacaoIncidenteService = notificacaoIncidenteService; _setorService = setorService; _pacienteService = pacienteService; _mapper = mapper; }
public Paciente LeerPorId(int id) { IPacienteService proxy = ServiceFactory.Get <IPacienteService>(); try { return(proxy.Ver(id)); } catch (FaultException fex) { throw new ApplicationException(fex.Message); } }
public void Eliminar(int id) { IPacienteService proxy = ServiceFactory.Get <IPacienteService>(); try { proxy.Eliminar(id); } catch (FaultException fex) { throw new ApplicationException(fex.Message); } }
public void Actualizar(Paciente paciente) { IPacienteService proxy = ServiceFactory.Get <IPacienteService>(); try { proxy.Editar(paciente); } catch (FaultException fex) { throw new ApplicationException(fex.Message); } }
public PacientePageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IDeviceService deviceService, IPacienteService pacienteService) : base(navigationService, pageDialogService, deviceService) { Title = Resources.MainPageTitle; Pacientes = new ObservableRangeCollection <Paciente>(); _pacienteService = pacienteService; AddItemCommand = new DelegateCommand(OnAddItemCommandExecuted); DeleteItemCommand = new DelegateCommand <Paciente>(OnDeleteItemCommandExecuted); PacienteItemTappedCommand = new DelegateCommand <Paciente>(OnPacienteItemTappedCommandExecuted); }
public CitaController( ICitaService citaService, IMedicoService medicoService, ISalaService salaService, ITipoServicioService tipoServicioService, IPacienteService pacienteService) { _citaService = citaService; _medicoService = medicoService; _salaService = salaService; _tipoServicioService = tipoServicioService; _pacienteService = pacienteService; _horarios = new List <SelectListItem>(); }
public List <Paciente> ListarTodosDeCliente(int ClienteId) { List <Paciente> result = default(List <Paciente>); IPacienteService proxy = ServiceFactory.Get <IPacienteService>(); try { result = proxy.ListarTodosDeCliente(ClienteId); } catch (FaultException fex) { throw new ApplicationException(fex.Message); } return(result); }
public Paciente Agregar(Paciente paciente) { Paciente result = default(Paciente); IPacienteService proxy = ServiceFactory.Get <IPacienteService>(); try { result = proxy.Agregar(paciente); } catch (FaultException fex) { throw new ApplicationException(fex.Message); } return(result); }
public void Paciente_Get_All() { //Arrange // _mockRepository.Setup(x => x.GetAll()).Returns(listCountry); // var _mock = new Mock<IGenericRepository<Paciente>>(); var listado = FakeListadoPacientes(); //_mockUnitWork.Setup(x=>x.Repository= ) _ = _mockRepository.Setup(x => x.GetAll(null, null, null, null)).Returns(listado.ToList()); //Act _service = new PacienteService(_mockUnitWork.Object, _mockRepository.Object); var results = _service.GetAll().ToList(); //Assert Assert.Equal(listado, results); Assert.Equal(4, results.Count); }
public void GestionCitasController_GetPaciente_RetornaExcepcion() { /// Arrange pacienteService = new StubIPacienteService { GetPacienteByDocumentoInt32 = (documento) => { throw new ArgumentNullException(); } }; controller = new GestionCitasController(citaService, pacienteService, tipoCitaService); /// Act Paciente result = controller.GetPaciente(123456); /// Assert Assert.IsInstanceOfType(result, typeof(ExceptionResult), "Se debe retornar una excepción"); }
public void GestionCitasController_GetPaciente_RetornaPacienteOk() { /// Arrange Paciente paciente = new Paciente { Id = 1, Documento = 123456, Nombre = "Otro Nombre" }; pacienteService = new StubIPacienteService { GetPacienteByDocumentoInt32 = (documento) => paciente }; controller = new GestionCitasController(citaService, pacienteService, tipoCitaService); /// Act Paciente result = controller.GetPaciente(123456); /// Assert Assert.IsNotNull(result); Assert.AreEqual(result.Documento, 123456, "El documento del paciente debe ser 123456"); Assert.AreEqual(result.Nombre, "Otro Nombre", "El nombre del paciente debe ser Otro Nombre"); }
public PacienteController( IPacienteService pacienteService ) { _pacienteService = pacienteService; }
public PacienteController(ILogger <PacienteController> logger, IPacienteService pacienteService) { _logger = logger; this._pacienteService = pacienteService; }
public PacientesController(IPacienteService _pacienteService) { this.pacienteService = _pacienteService; }
public PacienteController(IPacienteService PacienteService) { this.PacienteService = PacienteService; }
public PacienteController() { _pacienteService = new PacienteService(); }
public PacientesController(IPacienteService servico, ILogger logger) : base(logger) { this._servico = servico; }