public async Task<HttpResponseMessage> GetTripMapPath(TripMapPathRequest request)
 {
     var result = CheckCacheForEntry<IRequest, TripMapPathResponse>(request);
     if (result == null)
     {
         Logger.DebugFormat("Getting {0} from web: ", request.ToString());
         result = await new OpiaNetworkClient().GetTripMapPathAsync(request);
         await StoreResultInCache<IRequest, TripMapPathResponse>(request, result);
     }
     var response = Request.CreateResponse(HttpStatusCode.OK, result);
     return response;
 }
 public void TripMapPathRequest_ToString_WithMandatoryValuesSet_MustReturnCorrectQueryString()
 {
     var requestEntity = new TripMapPathRequest
     {
         TripId = "14278_3386311_20130808",
     };
     string expected = string.Format("trip-map-path?tripId=14278_3386311_20130808");
     string actual = requestEntity.ToString();
     Assert.AreEqual(expected, actual);
 }
 public void TripMapPathRequest_ToString_WithEmptyTripIds_MustThrowArgumentException()
 {
     var requestEntity = new TripMapPathRequest();
     string expected = requestEntity.ToString();
 }