Ejemplo n.º 1
0
 public CompaniesHouseClient(HttpClient httpClient)
 {
     _httpClient = httpClient;
     _companiesHouseSearchClient                        = new CompaniesHouseSearchClient(_httpClient, new SearchUriBuilderFactory());
     _companiesHouseCompanyProfileClient                = new CompaniesHouseCompanyProfileClient(_httpClient, new CompanyProfileUriBuilder());
     _companiesHouseCompanyFilingHistoryClient          = new CompaniesHouseCompanyFilingHistoryClient(_httpClient, new CompanyFilingHistoryUriBuilder());
     _companiesHouseOfficersClient                      = new CompaniesHouseOfficersClient(_httpClient, new OfficersUriBuilder());
     _companiesHouseCompanyInsolvencyInformationClient  = new CompaniesHouseCompanyInsolvencyInformationClient(_httpClient);
     _companiesHouseCompanyAppointmentsClient           = new CompaniesHouseAppointmentsClient(_httpClient);
     _companiesHousePersonsWithSignificantControlClient = new CompaniesHousePersonsWithSignificantControlClient(_httpClient, new PersonsWithSignificantControlBuilder());
     _companiesHouseChargesClient                       = new CompaniesHouseChargesClient(_httpClient, new ChargesUriBuilder());
 }
Ejemplo n.º 2
0
        public CompaniesHouseClient(ICompaniesHouseSettings settings)
        {
            var httpClientFactory = new HttpClientFactory(settings);

            _httpClient = httpClientFactory.CreateHttpClient();

            _companiesHouseSearchClient                       = new CompaniesHouseSearchClient(_httpClient, new SearchUriBuilderFactory());
            _companiesHouseCompanyProfileClient               = new CompaniesHouseCompanyProfileClient(_httpClient, new CompanyProfileUriBuilder());
            _companiesHouseCompanyFilingHistoryClient         = new CompaniesHouseCompanyFilingHistoryClient(_httpClient, new CompanyFilingHistoryUriBuilder());
            _companiesHouseOfficersClient                     = new CompaniesHouseOfficersClient(_httpClient, new OfficersUriBuilder());
            _companiesHouseCompanyInsolvencyInformationClient = new CompaniesHouseCompanyInsolvencyInformationClient(_httpClient);
            _companiesHouseCompanyAppointmentsClient          = new CompaniesHouseAppointmentsClient(_httpClient);
        }
Ejemplo n.º 3
0
        public CompaniesHouseClient(ICompaniesHouseSettings settings)
        {
            var httpClientFactory = new HttpClientFactory(settings);

            _httpClient = httpClientFactory.CreateHttpClient();

            _companiesHouseSearchClient                       = new CompaniesHouseSearchClient(_httpClient, new SearchUriBuilderFactory());
            _companiesHouseCompanyProfileClient               = new CompaniesHouseCompanyProfileClient(_httpClient, new CompanyProfileUriBuilder());
            _companiesHouseCompanyFilingHistoryClient         = new CompaniesHouseCompanyFilingHistoryClient(_httpClient, new CompanyFilingHistoryUriBuilder());
            _companiesHouseOfficersClient                     = new CompaniesHouseOfficersClient(_httpClient, new OfficersUriBuilder());
            _companiesHouseCompanyInsolvencyInformationClient = new CompaniesHouseCompanyInsolvencyInformationClient(_httpClient);
            _companiesHouseCompanyAppointmentsClient          = new CompaniesHouseAppointmentsClient(_httpClient);
            var documentUriBuilder = new DocumentUriBuilder();

            _companiesHouseDocumentMetadataClient = new CompaniesHouseDocumentMetadataClient(_httpClient, documentUriBuilder);
            _companiesHouseDocumentClient         = new CompaniesHouseDocumentClient(_httpClient, documentUriBuilder);
            _companiesHousePersonsWithSignificantControlClient = new CompaniesHousePersonsWithSignificantControlClient(_httpClient, new PersonsWithSignificantControlBuilder());
        }