Esempio n. 1
0
 public AuthorQueryHandler(
     IRepository <Author> authorRepository,
     HATEOASLinksService hATEOASLinksService,
     MediaTypeCheckService mediaTypeCheckService,
     IMapper mapper)
 {
     _authorRepository      = authorRepository;
     _hATEOASLinksService   = hATEOASLinksService;
     _mediaTypeCheckService = mediaTypeCheckService;
     _mapper = mapper;
 }
Esempio n. 2
0
 public PhoneQueryHandler(
     IRepository <Phone> phoneRepository,
     HATEOASLinksService hateoasLinksService,
     MediaTypeCheckService mediaTypeCheckService,
     IMapper mapper)
 {
     this.phoneRepository       = phoneRepository;
     this.hateoasLinksService   = hateoasLinksService;
     this.mediaTypeCheckService = mediaTypeCheckService;
     this.mapper = mapper;
 }
 public CreatePhoneCommandHandler(
     IRepository <Phone> phoneRepository,
     HATEOASLinksService hateoasLinksService,
     MediaTypeCheckService mediaTypeCheckService,
     IMapper mapper,
     IEventBus eventBus)
 {
     this.phoneRepository       = phoneRepository;
     this.hateoasLinksService   = hateoasLinksService;
     this.mediaTypeCheckService = mediaTypeCheckService;
     this.mapper   = mapper;
     this.eventBus = eventBus;
 }
Esempio n. 4
0
 public CreateCourseForAuthorCommandHandler(
     IActionContextAccessor actionContextAccessor,
     IRepository <Author> authorsRepository,
     IRepository <Course> coursesRepository,
     HATEOASLinksService hATEOASLinksService,
     MediaTypeCheckService mediaTypeCheckService,
     IMapper mapper)
 {
     _actionContextAccessor = actionContextAccessor;
     _authorsRepository     = authorsRepository;
     _coursesRepository     = coursesRepository;
     _hATEOASLinksService   = hATEOASLinksService;
     _mediaTypeCheckService = mediaTypeCheckService;
     _mapper = mapper;
 }