public ConsultaController(IPacienteService pacienteService, IPrimeraVisitaService primeraVisitaService, IConsultaService consultaService, ILog log) { _pacienteService = pacienteService; _primeraVisitaService = primeraVisitaService; _consultaService = consultaService; _log = log; }
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); }