public void Yahoo_GeoPlanet_GeoPlanetClient_Type_ShouldReturnNull_WhenTypeDoesNotExist() { using (var geoPlanetClient = new GeoPlanetClient()) { var placeType = geoPlanetClient.Type(int.MaxValue, AppId, RequestView.Long); placeType.ShouldBeNull(); } }
public void Yahoo_GeoPlanet_GeoPlanetClient_Type_ShouldReturn1Result_ForType35() { using (var geoPlanetClient = new GeoPlanetClient()) { var placeType = geoPlanetClient.Type(35, AppId, RequestView.Long); placeType.ShouldNotBeNull(); placeType.Code.ShouldEqual(35); placeType.Name.ShouldNotBeNull(); placeType.Description.ShouldNotBeNull(); placeType.Uri.ShouldNotBeNull(); placeType.Language.ShouldNotBeNull(); } }