public void StopsRequest_ToString_WithMandatoryValuesSet_MustReturnCorrectQueryString()
        {
            var requestEntity = new StopsRequest
            {
                StopIds = new List<string>() { "000026", "005468" }
            };

            string expected = string.Format("stops?ids=000026,005468");
            string actual = requestEntity.ToString();
            Assert.AreEqual(expected, actual);
        }
 public void StopsRequest_WithNoStopIds_MustThrowArgumentException()
 {
     var requestEntity = new StopsRequest();
     string expected = requestEntity.ToString();
 }
 public async Task<HttpResponseMessage> GetStopsByIds(StopsRequest request)
 {
     var result = CheckCacheForEntry<IRequest, StopsResponse>(request);
     if (result == null)
     {
         Logger.DebugFormat("Getting {0} from web: ", request.ToString());
         result = await new OpiaLocationClient().GetStopsByIdsAsync(request);
         await StoreResultInCache<IRequest, StopsResponse>(request, result);
     }
     var response = Request.CreateResponse(HttpStatusCode.OK, result);
     return response;
 }