Exemple #1
0
 public ConsultaController(IPacienteService pacienteService, IPrimeraVisitaService primeraVisitaService,
                           IConsultaService consultaService, ILog log)
 {
     _pacienteService      = pacienteService;
     _primeraVisitaService = primeraVisitaService;
     _consultaService      = consultaService;
     _log = log;
 }
Exemple #2
0
        public PrimeraVisitaServiceTest()
        {
            var mock = new MockFactory();

            _primeraVisitaRepositoryMock   = mock.CreateMock <IPrimeraVisitaRepository>();
            _calzadoHabitualRepositoryMock = mock.CreateMock <ICalzadoHabitualRepository>();
            _podologoRepositoryMock        = mock.CreateMock <IPodologoRepository>();
            _personaRepositoryMock         = mock.CreateMock <IPersonaRepository>();

            _primeraVisitaService = new PrimeraVisitaService(_primeraVisitaRepositoryMock.MockObject, _calzadoHabitualRepositoryMock.MockObject,
                                                             _personaRepositoryMock.MockObject, _podologoRepositoryMock.MockObject);
        }