public FindNearbyPlaceName ( NGeo.GeoNames.NearbyPlaceNameFinder finder ) : ReadOnlyCollection |
||
finder | NGeo.GeoNames.NearbyPlaceNameFinder | |
Результат | ReadOnlyCollection |
public void GeoNames_FindNearbyPlaceName_ShouldThrowException_WhenArgIsNull() { using (var geoNames = new GeoNamesContainer(null)) { geoNames.FindNearbyPlaceName(null); } }
public void GeoNames_FindNearbyPlaceName_ShouldReturnNull_WithoutUserName() { using (var geoNames = new GeoNamesContainer(null)) { var finder = new NearbyPlaceNameFinder(); var results = geoNames.FindNearbyPlaceName(finder); results.ShouldBeNull(); } }
public void GeoNames_FindNearbyPlaceName_ShouldReturn1Result_ForLehighLatitudeAndLongitude_WhenNoRadiusIsSpecified() { using (var geoNames = new GeoNamesContainer(UserName)) { var finder = new NearbyPlaceNameFinder { Latitude = 40.60326613801468, Longitude = -75.37771224975586, }; var results = geoNames.FindNearbyPlaceName(finder); results.ShouldNotBeNull(); results.Count.ShouldEqual(1); results[0].GeoNameId.ShouldEqual(5216771); results[0].Name.ShouldEqual("University Heights"); } }
public void GeoNames_FindNearbyPlaceName_ShouldReturn10Results_ForLehighLatitudeAndLongitude_When10KmRadiusIsSpecified() { using (var geoNames = new GeoNamesContainer(UserName)) { var finder = new NearbyPlaceNameFinder { Latitude = 40.60326613801468, Longitude = -75.37771224975586, RadiusInKm = 10.0, MaxRows = 10, }; var results = geoNames.FindNearbyPlaceName(finder); results.ShouldNotBeNull(); results.Count.ShouldEqual(10); results[0].GeoNameId.ShouldEqual(5216771); results[0].Name.ShouldEqual("University Heights"); } }
public void GeoNames_FindNearbyPlaceName_ShouldThrowException_WhenArgIsNull() { using (var geoNames = new GeoNamesContainer(null)) { geoNames.FindNearbyPlaceName(null); } }
public void GeoNames_FindNearbyPlaceName_ShouldReturnNull_WithoutUserName() { using (var geoNames = new GeoNamesContainer(null)) { var finder = new NearbyPlaceNameFinder(); var results = geoNames.FindNearbyPlaceName(finder); results.ShouldBeNull(); } }