public void PlacesDetailsTest(string placeID, string placeName)
        {
            PlaceDetailsRequest request = new PlaceDetailsRequest()
            {
                PlaceID = placeID
            };
            var response = new PlaceDetailsService().GetResponse(request);

            Assert.AreEqual(ServiceResponseStatus.Ok, response.Status);
            Assert.IsNotNull(response.Result.URL);
            Assert.AreEqual(placeID, response.Result.PlaceID);
            Assert.AreEqual(placeName, response.Result.Name);
        }
        public void PlacesDetailsTest(string placeID, string placeName)
        {
            PlaceDetailsRequest request = new PlaceDetailsRequest()
            {
                PlaceID = placeID
            };
            var response = new PlaceDetailsService().GetResponse(request);

            Assert.AreEqual(ServiceResponseStatus.Ok, response.Status);
            Assert.IsNotNull(response.Result.URL);
            Assert.AreEqual(placeID, response.Result.PlaceID);
            Assert.AreEqual(placeName, response.Result.Name);
        }
 /// <summary>
 /// Sends the specified request to the Google Maps Places web
 /// service and parses the response as an PlaceDetailsResponse
 /// object.
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public PlaceDetailsResponse GetResponse(PlaceDetailsRequest request)
 {
     var url = new Uri(this.BaseUri, request.ToUri());
     return Internal.Http.Get(url).As<PlaceDetailsResponse>();
 }
        /// <summary>
        /// Sends the specified request to the Google Maps Places web
        /// service and parses the response as an PlaceDetailsResponse
        /// object.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public PlaceDetailsResponse GetResponse(PlaceDetailsRequest request)
        {
            var url = new Uri(this.BaseUri, request.ToUri());

            return(Internal.Http.Get(url).As <PlaceDetailsResponse>());
        }
        public async Task <PlaceDetailsResponse> GetResponseAsync(PlaceDetailsRequest request)
        {
            var url = new Uri(baseUri, request.ToUri());

            return(await http.GetAsync <PlaceDetailsResponse>(url));
        }
        /// <summary>
        /// Sends the specified request to the Google Maps Places web
        /// service and parses the response as an PlaceDetailsResponse
        /// object.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public PlaceDetailsResponse GetResponse(PlaceDetailsRequest request)
        {
            var url = new Uri(baseUri, request.ToUri());

            return(http.Get <PlaceDetailsResponse>(url));
        }