Esempio n. 1
0
        public async Task <StationsResponse> GetStations(StationsRequest request)
        {
            var path     = new Paths.Stations(_token);
            var response = await
                           _api.CallRemoteApiAsync <StationsRequest, StationsResponse>(request, path);

            return(response);
        }
Esempio n. 2
0
        public void getting_list_of_stations_should_not_return_null_or_empty()
        {
            var stationRequest = new StationsRequest("All");

            stationRequest.Country  = "france";
            stationRequest.AreaType = AreaType.City;
            var response = _fixtures.CarRent.GetStations(stationRequest).Result;

            response.Errors.Should().BeNullOrEmpty();
        }