Example #1
0
 public AnunciosController(ILoggerFactory loggerFactory,
                           IAnunciosService anunciosService)
 {
     logger = loggerFactory?.CreateLogger <AnunciosController>() ??
              throw new ArgumentNullException(nameof(loggerFactory));
     this.anunciosService = anunciosService ??
                            throw new ArgumentNullException(nameof(anunciosService));
 }
 public AnunciosController(IAnunciosService anunciosService)
 {
     _anunciosService = anunciosService;
 }
 public AnunciosController(IAnunciosService anuncios, ICuentasService cuentas, IReloj reloj)
 {
     _anunciosService = anuncios;
     _cuentasService = cuentas;
     _reloj = reloj;
 }