Пример #1
0
        public async Task TaxAssessmentServiceShouldReturnData()
        {
            _mockedService = new TaxAssessmentServiceMocked();

            _httpClient =
                HttpClientMocker.SetupHttpClientMock(Url,
                                                     await CreateTaxAssessmentAsString().ConfigureAwait(false));

            _service = new TaxAssessmentService(_httpClient);

            var result = _service.GetTaxAssessment();

            Assert.NotNull(result);
        }
        public async Task PopulationInNorwayServiceShouldReturnData()
        {
            _mockedService = new PopulationInNorwayServiceMocked();

            _httpClient =
                HttpClientMocker.SetupHttpClientMock(Url,
                                                     await CreatePopulationInNorwayAsString().ConfigureAwait(false));

            _service = new PopulationInNorwayService(_httpClient);

            var result = _service.GetPopulationsInNorway();

            Assert.NotNull(result);
        }