public PhotoOverviewViewModel(IFlickrRepository flickrRepository, IContinentRepository continentRepository, ICountryRepository countryRepository, ICityRepository cityRepository) { _flickrRepository = flickrRepository; _continentRepository = continentRepository; _countryRepository = countryRepository; _cityRepository = cityRepository; }
/// <inheritdoc /> async Task <IDictionaryRange <int, Continent> > IRepository <int, Continent> .FindAllAsync(CancellationToken cancellationToken) { IContinentRepository self = this; var request = new ContinentRequest { Culture = self.Culture }; var response = await this.serviceClient.SendAsync <ContinentCollectionDTO>(request, cancellationToken).ConfigureAwait(false); if (response.Content == null || response.Content.Continents == null) { return(new DictionaryRange <int, Continent>(0)); } var values = this.continentCollectionConverter.Convert(response.Content, null); var continents = new DictionaryRange <int, Continent>(values.Count) { SubtotalCount = values.Count, TotalCount = values.Count }; foreach (var continent in values) { continent.Culture = request.Culture; continents.Add(continent.ContinentId, continent); } return(continents); }
/// <inheritdoc /> Task <IDictionaryRange <int, Continent> > IRepository <int, Continent> .FindAllAsync(CancellationToken cancellationToken) { IContinentRepository self = this; var request = new ContinentRequest { Culture = self.Culture }; return(this.serviceClient.SendAsync <ContinentCollectionDataContract>(request, cancellationToken).ContinueWith <IDictionaryRange <int, Continent> >( task => { var response = task.Result; if (response.Content == null || response.Content.Continents == null) { return new DictionaryRange <int, Continent>(0); } var values = this.converterForContinentCollection.Convert(response.Content, null); var continents = new DictionaryRange <int, Continent>(values.Count) { SubtotalCount = values.Count, TotalCount = values.Count }; foreach (var continent in values) { continent.Culture = request.Culture; continents.Add(continent.ContinentId, continent); } return continents; }, cancellationToken)); }
/// <inheritdoc /> IDictionaryRange <int, Continent> IRepository <int, Continent> .FindAll() { IContinentRepository self = this; var request = new ContinentRequest { Culture = self.Culture }; var response = this.serviceClient.Send <ContinentCollectionDTO>(request); if (response.Content == null || response.Content.Continents == null) { return(new DictionaryRange <int, Continent>(0)); } var values = this.continentCollectionConverter.Convert(response.Content, null); var continents = new DictionaryRange <int, Continent>(values.Count) { SubtotalCount = values.Count, TotalCount = values.Count }; foreach (var continent in values) { continent.Culture = request.Culture; continents.Add(continent.ContinentId, continent); } return(continents); }
public DropDownjQueryAjaxPostController( IContinentRepository continentRepository, ICountryRepository countryRepository, ICityRepository cityRepository) { this._continentRepository = continentRepository; this._countryRepository = countryRepository; this._cityRepository = cityRepository; }
public DropDownjQueryAjaxPostController( IContinentRepository continentRepository , ICountryRepository countryRepository , ICityRepository cityRepository ) { this._continentRepository = continentRepository; this._countryRepository = countryRepository; this._cityRepository = cityRepository; }
public IMTestProjectUnitOfWork( IMTestProjectReadOnlyContext readOnlyContext, IMTestProjectWriteOnlyContext writeOnlyContext, IContinentRepository continentRepository, IMainTableRepository mainTableRepository, ITableConfigurationRepository tableConfigurationRepository, IAdditionalInformationRepository tableMappingDataRepository ) { ReadOnlyContext = readOnlyContext; WriteOnlyContext = writeOnlyContext; Continents = continentRepository; MainTables = mainTableRepository;; TableConfigurations = tableConfigurationRepository;; TableMappingDatas = tableMappingDataRepository;; }
public ContinentService(IContinentRepository _continentRepository, IContinentValidation _continentValidation) { _repository = _continentRepository; _validator = _continentValidation; }
public ContinentService(IContinentRepository repository, ILoggingFactory loggingFactory) : base(loggingFactory) { _repository = repository; }
public DropDownAjaxPostController( IContinentRepository continentRepository ) { this._continentRepository = continentRepository; }
public KlimatogramController(IContinentRepository continentRepository, IDeterminatieTreeRepository determinatieTreeRepository) { this.continentRepository = continentRepository; this.determinatieTreeRepository = determinatieTreeRepository; }
public ContinentService(IUnitOfWork unitOfWork, IContinentRepository continentRepo) : base(unitOfWork, continentRepo) { _continentRepo = continentRepo; }
public ContinentController(IContinentRepository _repository) { this.repository = _repository; }
public TreeViewController(IContinentRepository continentRepository, ICityRepository cityRepository) { this._continentRepository = continentRepository; this._cityRepository = cityRepository; }
public TreeViewController( IContinentRepository continentRepository , ICityRepository cityRepository ) { this._continentRepository = continentRepository; this._cityRepository = cityRepository; }
public DropDownNormalPostPRGController( IContinentRepository continentRepository ) { this._continentRepository = continentRepository; }
public DropDownNormalPostController(IContinentRepository continentRepository) { this._continentRepository = continentRepository; }
public GetContinentByNameQueryHandler(IContinentRepository repository, IMapper mapper) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public GetContinentsQueryHandler(IContinentRepository repository) { _repository = repository ?? throw new System.ArgumentNullException(nameof(repository)); }
public CountryController(ICountryRepository countryRepository, IContinentRepository continentRepository) { _countryRepository = countryRepository; _continentRepository = continentRepository; }
public GraphQLRepositoryTests() { _graphQLClient = new GraphQLHttpClient("https://countries.trevorblades.com/", new NewtonsoftJsonSerializer()); _graphQLRepository = new GraphQLRepository(_graphQLClient); }
public void InitKlimatogramControllerTest() { continentRepository = new ContinentRepositoryDummy(); determinatieTreeRepository = new DeterminatieTreeRepositoryDummy(); controller = new KlimatogramController(continentRepository, determinatieTreeRepository); }
public PhotoOverviewDesignViewModel(IFlickrRepository flickrRepository, IContinentRepository continentRepository, ICountryRepository countryRepository, ICityRepository cityRepository) : base(flickrRepository, continentRepository, countryRepository, cityRepository) { }
public UnitOfWork(GeographyContext context) { this.context = context; Continents = new ContinentRepository(context); Countries = new CountryRepository(context); }
/// <summary> /// Dependency Injection using Unity. Look at the App_Start/UnityWebApi.cs file for usage. /// </summary> /// <param name="repository"></param> public ContinentController(IContinentRepository continentRepository) : base(continentRepository) { this._continentRepository = continentRepository; }
public NavController(IContinentRepository repository) { repo = repository; }
public ContinentService(ILogger logger, IContinentRepository repo) { _logger = logger; _repo = repo; }
public ContinentController(IContinentRepository contRepos, ILogger <ContinentController> logger) { this.contRepos = contRepos; this.logger = logger; }
public ContinentMenu(IContinentRepository continentRepository) { _continentRepository = continentRepository; }