public async Task <Domain.Locations.Locations> GetLocations(string searchTerm)
        {
            var request = new GetLocationsApiRequest(_config.BaseUrl, searchTerm);

            var result = await _client.Get <Domain.Locations.Locations>(request);

            return(result);
        }
        public void Then_The_Url_Is_Correctly_Built(string baseUrl, string searchTerm)
        {
            //Arrange Act
            var actual = new GetLocationsApiRequest(baseUrl, searchTerm);

            //Assert
            actual.GetUrl.Should().Be($"{baseUrl}locations?searchTerm={searchTerm}");
        }
Beispiel #3
0
        public async Task <Domain.Locations.Api.Responses.Locations> GetLocations(string searchTerm)
        {
            var request = new GetLocationsApiRequest(searchTerm);

            var result = await _client.Get <Domain.Locations.Api.Responses.Locations>(request);

            return(result);
        }