Exemple #1
0
        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;
 }
Exemple #3
0
 //Utilizamos el constructor para inicializar el logger
 public PreguntasController(ILogger <PreguntasController> logger, IAsignacionInfoRepository asignacionInfoRepository)
 {
     _logger = logger;
     _asignacionInfoRepository = asignacionInfoRepository;
 }