예제 #1
0
 public PostsController(IPostRepository postRepository,
                        IPropertyCheckerService propertyCheckerService, IMapper mapper)
 {
     _postRepository         = postRepository;
     _propertyCheckerService = propertyCheckerService;
     _mapper = mapper;
 }
예제 #2
0
 public FriendshipManager(IPropertyMappingService propertyMappingService, IPropertyCheckerService checker,
                          IUnitOfWork uow)
 {
     _propertyMappingService = propertyMappingService;
     _servicePropertyChecker = checker;
     _uow = uow;
 }
 public WatchedMoviesManager(IPropertyMappingService propertyMappingService, IPropertyCheckerService checker,
                             IUnitOfWork uow)
 {
     _servicePropertyChecker = checker;
     _propertyMappingService = propertyMappingService;
     _uow = uow;
 }
예제 #4
0
 public CompaniesController(ICompanyRepositroy companyRepositroy, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService)
 {
     _companyRepositroy      = companyRepositroy ?? throw new ArgumentNullException(nameof(companyRepositroy));
     _mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
 }
예제 #5
0
 public CompanyController(IRekommendRepository repository, IPropertyCheckerService propertyCheckerService, IPropertyMappingService propertyMappingService, ILogger <CompanyController> logger)
 {
     _repository             = repository ?? throw new ArgumentNullException(nameof(repository));
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
예제 #6
0
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService)
 {
     _courseLibraryRepository = courseLibraryRepository;
     _mapper = mapper;
     _propertyMappingService = propertyMappingService;
     _propertyCheckerService = propertyCheckerService;
 }
예제 #7
0
 public AuthorsController(ILibraryRepository libraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService)
 {
     this.libraryRepository      = libraryRepository ?? throw new ArgumentNullException(nameof(libraryRepository));
     this.mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     this.propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
 }
예제 #8
0
 protected QueryHandler(
     IPropertyMappingService propertyMappingService,
     IPropertyCheckerService propertyCheckerService)
 {
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException();
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException();
 }
예제 #9
0
 public CompaniesController(ICompanyRepository companyRepository, IMapper mapper, IPropertyMappingService mappingService, IPropertyCheckerService checkerService)
 {
     this._companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
     this._mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this._mappingService    = mappingService ?? throw new ArgumentNullException(nameof(mappingService));
     this._checkerService    = checkerService ?? throw new ArgumentNullException(nameof(checkerService));
 }
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService)
 {
     _propertyCheckerService  = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
     _courseLibraryRepository = courseLibraryRepository ?? throw new ArgumentNullException(nameof(courseLibraryRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
 }
 public ProductController(IProductDao productDao, ILogger <ProductController> logger, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService, IMapper mapper)
 {
     this._logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     this._productDao             = productDao ?? throw new ArgumentNullException(nameof(productDao));
     this._propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     this._propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
     this._mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
예제 #12
0
 public GradService(IMapper mapper,
                    HealthCare020DbContext dbContext,
                    IPropertyMappingService propertyMappingService,
                    IPropertyCheckerService propertyCheckerService,
                    IHttpContextAccessor httpContextAccessor,
                    IAuthService authService) : base(mapper, dbContext, propertyMappingService, propertyCheckerService, httpContextAccessor, authService)
 {
 }
예제 #13
0
 public CustomerController(ICustomerDao customerDao, ILogger <CustomerController> logger, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService, IMapper mapper)
 {
     this._logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     this._customerDao            = customerDao ?? throw new ArgumentNullException(nameof(customerDao));
     this._propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     this._propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
     this._mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
예제 #14
0
 public UserManager(IPropertyMappingService propertyMappingService, IPropertyCheckerService checker, IUnitOfWork uow,
                    IPasswordHelper passHelper)
 {
     _propertyMappingService = propertyMappingService;
     _servicePropertyChecker = checker;
     _uow        = uow;
     _passHelper = passHelper;
 }
 public TechJobOpeningsController(IRekommendRepository repository, IPropertyCheckerService propertyCheckerService, IPropertyMappingService propertyMappingService, ILogger <TechJobOpeningsController> logger, IUserInfoService userInfoService)
 {
     _repository             = repository ?? throw new ArgumentNullException(nameof(repository));
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _userInfoService = userInfoService ?? throw new ArgumentNullException(nameof(userInfoService));
 }
 public WatchedMoviesController(IMapper mapper, IPropertyMappingService service,
                                IPropertyCheckerService checker, IYearStatisticManager yearStatisticManager,
                                IWatchedMoviesStatsManager watchedMoviesStatsManager, IPopularMoviesManager popularMoviesManager,
                                IWatchedMoviesManager watchedMoviesManager)
     : base(mapper, service, checker, yearStatisticManager, watchedMoviesStatsManager, popularMoviesManager,
            watchedMoviesManager)
 {
 }
예제 #17
0
 public CompaniesController(ICompanyRepository _companyRepository, IMapper mapper, IPropertyMappingService propertyMappingService,
                            IPropertyCheckerService propertyCheckerService)
 {
     this._companyRepository = _companyRepository ?? throw new ArgumentException(nameof(CompanyRepository));
     _mapper = mapper ?? throw new ArgumentException(nameof(mapper));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentException(nameof(propertyMappingService));
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentException(nameof(propertyCheckerService));
 }
예제 #18
0
 public AuthorsController(ICourseLibraryRepository repository, IMapper mapper,
                          IPropertyMappingService mappingService, IPropertyCheckerService checkerService)
 {
     mRepository     = repository ?? throw new ArgumentNullException(nameof(repository));
     mMapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
     mMappingService = mappingService ?? throw new ArgumentNullException(nameof(mappingService));
     mCheckerService = checkerService ?? throw new ArgumentNullException(nameof(checkerService));
 }
예제 #19
0
 public BaseService(IMapper mapper, HealthCare020DbContext dbContext, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService,
                    IAuthService authService)
 {
     _mapper    = mapper;
     _dbContext = dbContext;
     _propertyMappingService = propertyMappingService;
     _propertyCheckerService = propertyCheckerService;
     _authService            = authService;
 }
 public LicniPodaciService(IMapper mapper,
                           HealthCare020DbContext dbContext,
                           IPropertyMappingService propertyMappingService,
                           IPropertyCheckerService propertyCheckerService,
                           IHttpContextAccessor httpContextAccessor,
                           IAuthService authService, IFaceRecognitionService faceRecognitionService) : base(mapper, dbContext, propertyMappingService, propertyCheckerService, httpContextAccessor, authService)
 {
     _faceRecognitionService = faceRecognitionService;
 }
예제 #21
0
 public ZahtevZaPosetuService(IMapper mapper, HealthCare020DbContext dbContext,
                              IPropertyMappingService propertyMappingService,
                              IPropertyCheckerService propertyCheckerService,
                              IHttpContextAccessor httpContextAccessor,
                              IAuthService authService,
                              ISMSGateway smsGateway)
     : base(mapper, dbContext, propertyMappingService, propertyCheckerService, httpContextAccessor, authService)
 {
     _smsGateway = smsGateway;
 }
예제 #22
0
 public DogsForOwnerController(IOwnerRepository ownerRepository,
                               IDogRepository dogRepository,
                               IMapper mapper,
                               IPropertyCheckerService propertyCheckerService)
 {
     _ownerRepository        = ownerRepository;
     _dogRepository          = dogRepository;
     _mapper                 = mapper;
     _propertyCheckerService = propertyCheckerService;
 }
예제 #23
0
 public ArtistsController(IMusicPlayerRepository repository,
                          IMapper mapper,
                          IPropertyMappingService mappingService,
                          IPropertyCheckerService propertyChecker)
 {
     this.repository      = repository;
     this.mapper          = mapper;
     this.mappingService  = mappingService;
     this.propertyChecker = propertyChecker;
 }
예제 #24
0
 /// <summary>
 /// 依赖注入:容器全权负责组件的装配,它会把符合依赖关系的对象通过构造函数传递给需要的对象。
 /// 符合依赖倒置原则,高层模块不应该依赖低层模块,两者都应该依赖其抽象
 /// </summary>
 /// <param name="companyRepository"></param>
 public CompaniesController(ICompanyRepository companyRepository, IMapper mapper, IEmployeeRepository employeeRepository,
                            IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService)
 {
     //dependency injection
     _companyRepository      = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
     _mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _employeeRepository     = employeeRepository ?? throw new ArgumentNullException(nameof(employeeRepository));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
 }
예제 #25
0
 public UsersController(IUserRepository userRepository,
                        IMapper mapper,
                        IPropertyMappingService propertyMappingService,
                        IPropertyCheckerService propertyCheckerService)
 {
     _userRepository         = userRepository;
     _mapper                 = mapper;
     _propertyMappingService = propertyMappingService;
     _propertyCheckerService = propertyCheckerService;
 }
예제 #26
0
 public DogsController(IDogRepository dogRepository,
                       IMapper mapper,
                       IPropertyMappingService propertyMappingService,
                       IPropertyCheckerService propertyCheckerService)
 {
     _dogRepository          = dogRepository;
     _mapper                 = mapper;
     _propertyMappingService = propertyMappingService;
     _propertyCheckerService = propertyCheckerService;
 }
예제 #27
0
 public MenusController(IMapper mapper,
                        IMenuRepository menuRepository,
                        IPropertyMappingService propertyMappingService,
                        IPropertyCheckerService propertyCheckerService)
 {
     _mapper                 = mapper;
     _menuRepository         = menuRepository;
     _propertyMappingService = propertyMappingService;
     _propertyCheckerService = propertyCheckerService;
 }
예제 #28
0
 public DoktorService(IMapper mapper, HealthCare020DbContext dbContext,
                      IPropertyMappingService propertyMappingService,
                      IPropertyCheckerService propertyCheckerService,
                      IRadnikService radnikService,
                      IHttpContextAccessor httpContextAccessor,
                      IAuthService authService,
                      IKorisnikService korisnikService) : base(mapper, dbContext, propertyMappingService, propertyCheckerService, httpContextAccessor, authService)
 {
     _radnikService   = radnikService;
     _korisnikService = korisnikService;
 }
예제 #29
0
 // Notification controller
 public BaseController(IMapper mapper, IPropertyMappingService service, IPropertyCheckerService checker, INotificationManager notificationManager)
 {
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _service = service ??
                throw new ArgumentNullException(nameof(service));
     _servicePropertyChecker = checker ??
                               throw new ArgumentNullException(nameof(checker));
     _notificationManager = notificationManager ??
                            throw new ArgumentNullException(nameof(notificationManager));
 }
 public PacijentNaLecenjuService(IMapper mapper,
                                 HealthCare020DbContext dbContext,
                                 IPropertyMappingService propertyMappingService,
                                 IPropertyCheckerService propertyCheckerService,
                                 IHttpContextAccessor httpContextAccessor,
                                 IAuthService authService,
                                 ICRUDService <LicniPodaci, LicniPodaciDto, LicniPodaciDto, LicniPodaciResourceParameters, LicniPodaciUpsertDto, LicniPodaciUpsertDto> licniPodaciService)
     : base(mapper, dbContext, propertyMappingService, propertyCheckerService, httpContextAccessor, authService)
 {
     _licniPodaciService = licniPodaciService;
 }