예제 #1
0
        public static void AsAList(ICollection<IPointToLaceProvider> response, IAmRgtVinRequest request, IGetVehicleFromVin vinQuery,  out List<Vin> vins)
        {
            var vinnumber = HandleRequest.GetVinNumber(response, request);
            if (string.IsNullOrEmpty(vinnumber))
            {
                vins = new List<Vin>(); 
                return;
            }

            vinQuery.GetVin(vinnumber);
            vins = vinQuery.Vins != null ? vinQuery.Vins.ToList() : new List<Vin>();
        }
 public static string GetVinNumber(ICollection<IPointToLaceProvider> response, IAmRgtVinRequest request)
 {
     return !string.IsNullOrEmpty(request.VinNumber.GetValue())
         ? request.VinNumber.GetValue()
         : new ResponseDataMiningFactory().MineVinNumber(response);
 }