public Address GetAddress(string houseNumber)
        {
            if (!_isValid)
            {
                return(null);
            }

            string houseNumberToSearch = houseNumber;

            if (String.IsNullOrEmpty(houseNumberToSearch))
            {
                houseNumberToSearch = "0";
            }

            //return CapScanUtil.GetAddress( houseNumberToSearch + ", " + _value );
            com.bauerhosting.postcodes.AddressResult ar = _service.GetAddress(_value, houseNumberToSearch, _siteName);
            if (ar != null)
            {
                Address a = AddressFromServiceResult(ar);

                return(a);
            }
            else
            {
                return(null);
            }
        }
        private static Address AddressFromServiceResult(com.bauerhosting.postcodes.AddressResult ar)
        {
            Address a = new Address();

            a.Line1    = ar.Line1;
            a.Line2    = ar.Line2;
            a.Town     = ar.Town;
            a.County   = ar.County;
            a.Postcode = new Postcode(ar.Postcode);
            return(a);
        }