Ejemplo n.º 1
0
 public ReviewsController(IKnockRepository knockRepository, IMapper mapper)
 {
     _knockRepository = knockRepository ??
                        throw new ArgumentNullException(nameof(knockRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 2
0
 public AuthController(IKnockRepository knockRepository, IMapper mapper,
                       IOptions <AppSettings> options)
 {
     _knockRepository = knockRepository ??
                        throw new ArgumentNullException(nameof(knockRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _options = options.Value ??
                throw new ArgumentNullException(nameof(options));
 }