Ejemplo n.º 1
0
 public CountryService(IAssistenceInfoRepository assistanceRepository,
                       ICountryRepository countryRepository,
                       ICountryInfoRepository countryInfoRepository)
 {
     this.assistanceRepository  = assistanceRepository;
     this.countryRepository     = countryRepository;
     this.countryInfoRepository = countryInfoRepository;
 }
Ejemplo n.º 2
0
 public PostalCodesController(ILogger <PostalCodesController> logger,
                              ICountryInfoRepository repository,
                              IUrlHelper urlHelper)
 {
     _logger     = logger;
     _repository = repository;
     _urlHelper  = urlHelper;
 }
Ejemplo n.º 3
0
 public CountriesController(ILogger <CountriesController> logger,
                            ICountryInfoRepository repository,
                            IUrlHelper urlHelper,
                            IPropertyMappingService propertyMappingService,
                            ITypeHelperService typeHelperService)
 {
     _logger                 = logger;
     _repository             = repository;
     _urlHelper              = urlHelper;
     _propertyMappingService = propertyMappingService;
     _typeHelperService      = typeHelperService;
 }
Ejemplo n.º 4
0
 public CountryRepository(IConnectionStringProvider provider, IAssistenceInfoRepository assistenceInfoRepository, ICountryInfoRepository countryInfoRepository)
 {
     connection = new SqlConnectionWrapper(provider.Value);
     this.assistenceInfoRepository = assistenceInfoRepository;
     this.countryInfoRepository    = countryInfoRepository;
 }
 public CountriesController(ICountryInfoRepository countryInfoRepository)
 {
     _countryInfoRepository = countryInfoRepository ??
                              throw new ArgumentNullException(nameof(countryInfoRepository));
 }
 public LanguagesController(ILogger <LanguagesController> logger, IMailServices mailServices, ICountryInfoRepository countryInfoRepository)
 {
     _logger                = logger ?? throw new ArgumentNullException(nameof(logger));
     _mailServices          = mailServices ?? throw new ArgumentNullException(nameof(mailServices));
     _countryInfoRepository = countryInfoRepository ?? throw new ArgumentNullException(nameof(countryInfoRepository));
 }
 public CountryInfoController(ICountryInfoRepository repository)
 {
     _repository = repository;
 }