public AuthorsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService) { _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService)); _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService)); }
public AuthorsController( ICourseLibraryRepository courseLibraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService, ILogger <AuthorsController> logger, IDiagnosticContext diagnosticContext) { _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService)); _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _diagnosticContext = diagnosticContext ?? throw new ArgumentNullException(nameof(diagnosticContext)); }
public CourseAuthorsController(ICourseLibraryRepository repository) { _repository = repository; }
public AuthorCollectionsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper) { _courseLibraryRepository = courseLibraryRepository; _mapper = mapper; }
public CoursesController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper) { _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public AuthorsController(ICourseLibraryRepository courseLibraryRepository) { _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository)); }
public AuthorsController(ICourseLibraryRepository courseRepository, IMapper mapper) { this.courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public AuthorsController(ICourseLibraryRepository repos, IMapper mapper) { this._repos = repos ?? throw new ArgumentNullException(nameof(repos)); this._mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public CoursesController(ICourseLibraryRepository _courseLibraryRepository, IMapper _mapper) { this._courseLibraryRepository = _courseLibraryRepository ?? throw new ArgumentNullException(nameof(_courseLibraryRepository)); this._mapper = _mapper ?? throw new ArgumentNullException(nameof(_mapper)); }
public AuthorCollectionsController(ICourseLibraryRepository context, IMapper mapper) { _context = context ?? throw new ArgumentNullException(nameof(context)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public AuthorCollectionsController(ICourseLibraryRepository repository, IMapper mapper) { mRepository = repository ?? throw new ArgumentNullException(nameof(repository)); mMapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public CoursesController(IMapper mapper, ICourseLibraryRepository courseLibraryRepository) { this.mapper = mapper; this.courseLibraryRepository = courseLibraryRepository; }
public CourseController(ICourseLibraryRepository repo, IMapper map) { _repo = repo; _map = map ?? throw new ArgumentNullException(nameof(map)); }
public AuthorController(ICourseLibraryRepository course, IMapper maaper) { _course = course; _mapper = maaper ?? throw new ArgumentNullException(nameof(maaper)); }
public AuthorCollectionsController(ICourseLibraryRepository repository, IMapper mapper) { courseLibraryRepository = repository; this.mapper = mapper; }
public AuthorsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper) { this.courseLibraryRepository = courseLibraryRepository; this.mapper = mapper; }
public CoursesController(IMapper mapper, ICourseLibraryRepository courseLibraryRepository) { _mapper = mapper; _courseLibraryRepository = courseLibraryRepository; }
public CoursesController(ICourseLibraryRepository repository, IMapper mapper) { this.repository = repository; this.mapper = mapper; }
private readonly ICourseLibraryRepository _courseLibraryRepository; // We are not going to change this, so we use a readonly field. public AuthorsController(ICourseLibraryRepository courseLibraryRepository) // Injecting an instance of the repository through constructor injection. { _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository)); }
public AuthorsController(ICourseLibraryRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public AuthorController(ICourseLibraryRepository courseLibaryService, IMapper mapper) { _courseLibaryService = courseLibaryService; _mapper = mapper; }
public CousesController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper) { this.courseLibraryRepository = courseLibraryRepository; this._mapper = mapper; }
public CoursesController(ICourseLibraryRepository courseLibrary, IMapper mapper) { _courseLibrary = courseLibrary; _mapper = mapper; }
public CoursesController(ICourseLibraryRepository _courseRepo, IMapper _mapper) { this.courseRepo = _courseRepo ?? throw new NullReferenceException(nameof(_courseRepo)); this.mapper = _mapper ?? throw new NullReferenceException(nameof(_mapper)); }
public AuthorCollectionController(ICourseLibraryRepository repo, IMapper mapper) { _repo = repo ?? throw new ArgumentNullException(nameof(repo)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public IActionResult GetCoursesForAuthor(string id, [FromQuery] string searchParam, [FromServices] ICourseLibraryRepository courseLibraryRepository) { return(Ok()); }
public AuthorCollectionsController(IMapper mapper, ICourseLibraryRepository courseLibraryRepository) { _mapper = mapper; _courseLibraryRepository = courseLibraryRepository; }
public AuthorsController(ICourseLibraryRepository courseLibraryRepository) { this._courseLibraryRepository = courseLibraryRepository; }
public AuthorCollectionsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper) { _courseLibraryRepository = courseLibraryRepository ?? throw new System.ArgumentNullException(nameof(courseLibraryRepository)); _mapper = mapper ?? throw new System.ArgumentNullException(nameof(mapper)); }
public AuthorsController(ICourseLibraryRepository _repository, IMapper _mapper) { this.repository = _repository ?? throw new ArgumentNullException(nameof(_repository)); this.mapper = _mapper ?? throw new NullReferenceException(nameof(_mapper)); }