public AsignacionControllerTest() { mockLogger = new Mock <ILogger <AsignacionController> >(); _logger = mockLogger.Object; mockRepository = new Mock <IAsignacionInfoRepository>(); _asignacionInfoRepository = mockRepository.Object; var autoMapperInstance = AutoMapperConfig.Instance; }
public AsignacionController(ILogger <AsignacionController> logger, IAsignacionInfoRepository asignacionInfoRepository) { _logger = logger; _asignacionInfoRepository = asignacionInfoRepository; }
//Utilizamos el constructor para inicializar el logger public PreguntasController(ILogger <PreguntasController> logger, IAsignacionInfoRepository asignacionInfoRepository) { _logger = logger; _asignacionInfoRepository = asignacionInfoRepository; }