public CollegeService(IProfessorsBll professorsBll, ILogger <CollegeService> logger, IMapper mapper) { _professorsBll = professorsBll ?? throw new ArgumentNullException(nameof(professorsBll)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
/* * TODO: UNCOMMENT this method when executing https://benchmarkdotnet.org */ //public ProfessorsController() //{ // _professorsBll = new Bll.ProfessorsBll(); // _logger = new Logger<ProfessorsController>(new LoggerFactory()); //} /* * TODO: COMMENT this method when executing https://benchmarkdotnet.org */ public ProfessorsController(IProfessorsBll professorsBll, ILogger <ProfessorsController> logger) { _professorsBll = professorsBll ?? throw new ArgumentNullException(nameof(professorsBll)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }