Пример #1
0
 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));
 }
Пример #3
0
 public CourseAuthorsController(ICourseLibraryRepository repository)
 {
     _repository = repository;
 }
Пример #4
0
 public AuthorCollectionsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper)
 {
     _courseLibraryRepository = courseLibraryRepository;
     _mapper = mapper;
 }
Пример #5
0
 public CoursesController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper)
 {
     _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #6
0
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository)
 {
     _courseLibraryRepository = courseLibraryRepository ??
                                throw new ArgumentNullException(nameof(courseLibraryRepository));
 }
Пример #7
0
 public AuthorsController(ICourseLibraryRepository courseRepository, IMapper mapper)
 {
     this.courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
     this.mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #8
0
 public AuthorsController(ICourseLibraryRepository repos, IMapper mapper)
 {
     this._repos  = repos ?? throw new ArgumentNullException(nameof(repos));
     this._mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #9
0
 public CoursesController(ICourseLibraryRepository _courseLibraryRepository, IMapper _mapper)
 {
     this._courseLibraryRepository = _courseLibraryRepository ?? throw new ArgumentNullException(nameof(_courseLibraryRepository));
     this._mapper = _mapper ?? throw new ArgumentNullException(nameof(_mapper));
 }
Пример #10
0
 public AuthorCollectionsController(ICourseLibraryRepository context, IMapper mapper)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #11
0
 public AuthorCollectionsController(ICourseLibraryRepository repository, IMapper mapper)
 {
     mRepository = repository ?? throw new ArgumentNullException(nameof(repository));
     mMapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #12
0
 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));
 }
Пример #15
0
 public AuthorCollectionsController(ICourseLibraryRepository repository, IMapper mapper)
 {
     courseLibraryRepository = repository;
     this.mapper             = mapper;
 }
Пример #16
0
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper)
 {
     this.courseLibraryRepository = courseLibraryRepository;
     this.mapper = mapper;
 }
Пример #17
0
 public CoursesController(IMapper mapper, ICourseLibraryRepository courseLibraryRepository)
 {
     _mapper = mapper;
     _courseLibraryRepository = courseLibraryRepository;
 }
Пример #18
0
 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));
        }
Пример #20
0
 public AuthorsController(ICourseLibraryRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public AuthorController(ICourseLibraryRepository courseLibaryService, IMapper mapper)
 {
     _courseLibaryService = courseLibaryService;
     _mapper = mapper;
 }
Пример #22
0
 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));
 }
Пример #26
0
 public IActionResult GetCoursesForAuthor(string id,
                                          [FromQuery] string searchParam,
                                          [FromServices] ICourseLibraryRepository courseLibraryRepository)
 {
     return(Ok());
 }
Пример #27
0
 public AuthorCollectionsController(IMapper mapper, ICourseLibraryRepository courseLibraryRepository)
 {
     _mapper = mapper;
     _courseLibraryRepository = courseLibraryRepository;
 }
Пример #28
0
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository)
 {
     this._courseLibraryRepository = courseLibraryRepository;
 }
Пример #29
0
 public AuthorCollectionsController(ICourseLibraryRepository courseLibraryRepository,
                                    IMapper mapper)
 {
     _courseLibraryRepository = courseLibraryRepository ?? throw new System.ArgumentNullException(nameof(courseLibraryRepository));
     _mapper = mapper ?? throw new System.ArgumentNullException(nameof(mapper));
 }
Пример #30
0
 public AuthorsController(ICourseLibraryRepository _repository,
                          IMapper _mapper)
 {
     this.repository = _repository ?? throw new ArgumentNullException(nameof(_repository));
     this.mapper     = _mapper ?? throw new NullReferenceException(nameof(_mapper));
 }