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