public Task <IEnumerable <PostNord.ServicePoint> > FindNearestByAddress(System.Globalization.RegionInfo regionInfo, string city, string postalCode, string streetName = null, string streetNumber = null, int numberOfServicePoints = 5, string srId = "EPSG:4326")
 {
     return(PostNord.FindNearestByAddress(regionInfo, city, postalCode, streetName, streetNumber,
                                          numberOfServicePoints, srId));
 }
 private static DeliveryLocation CreateDeliveryLocationFrom(PostNord.ServicePoint sp)
 {
     return new DeliveryLocation(
         new ServicePoint() { Id = sp.Id, Name = sp.Name, Address = string.Concat(sp.DeliveryAddress.StreetName, ' ', sp.DeliveryAddress.StreetNumber), City = sp.DeliveryAddress.City, PostalCode = sp.DeliveryAddress.PostalCode },
         sp.Name);
 }
 public static void ShouldBeEquivalentOf(this DeliveryLocation location, PostNord.ServicePoint servicePoint)
 {
     location.ShouldNotBeNull();
     location.text.ShouldEqual(servicePoint.Name);
     location.value.Address.ShouldEqual(string.Concat(servicePoint.DeliveryAddress.StreetName, ' ', servicePoint.DeliveryAddress.StreetNumber));
 }