예제 #1
0
 public BusinessSectorsController(IUnitOfWork unitOfWork, IBusinessSectorRepository businessSectorRepository, IRedisConnectionFactory cache, IMediator mediator)
 {
     _unitOfWork = unitOfWork;
     _businessSectorRepository = businessSectorRepository;
     _cache    = cache;
     _mediator = mediator;
 }
예제 #2
0
 public BusinessSectorsCommandsHandler(
     ILogger <BusinessSectorsCommandsHandler> logger,
     IIdentityService identityService,
     IUnitOfWork unitOfWork,
     IMapper mapper,
     IBusinessSectorRepository businessSectorConfigurationRepository)
 {
     _unitOfWork               = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _logger                   = logger ?? throw new ArgumentNullException(nameof(logger));
     _identityService          = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mapper                   = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _businessSectorRepository = businessSectorConfigurationRepository ?? throw new ArgumentNullException(nameof(businessSectorConfigurationRepository));
 }
예제 #3
0
 public OfferService(ITownRepository townRepository, IBusinessSectorRepository businessSectorRepository, IJobOfferRepository jobOfferRepository)
 {
     this._townRepository           = townRepository;
     this._businessSectorRepository = businessSectorRepository;
     this._jobOfferRepository       = jobOfferRepository;
 }
예제 #4
0
 public BusinessSectorService(IBusinessSectorRepository sectorRepository)
 {
     this.sectorRepository = sectorRepository;
 }