public void Yahoo_GeoPlanet_JsonPlace_Center_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, Point>>>
     {
         { "centroid", p => p.Center },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #2
0
 public void Yahoo_GeoPlanet_JsonPlaceType_JsonAttributes_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, JsonPlaceTypeAttributes>>>
     {
         { "placeTypeName attrs", p => p.JsonAttributes },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
 public void Yahoo_GeoPlanet_JsonPlace_BoundingBox_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, BoundingBox>>>
     {
         { "boundingBox", p => p.BoundingBox },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
 public void Yahoo_GeoPlanet_JsonPlaceTypeAttributes_Code_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceTypeAttributes, int>>>
     {
         { "code", p => p.Code },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #5
0
 public void Yahoo_GeoPlanet_JsonPlaceType_Uri_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, Uri>>>
     {
         { "uri", p => p.Uri },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
 public void Yahoo_GeoPlanet_JsonLocalityAttributes_Type_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonLocalityAttributes, string>>>
     {
         { "type", p => p.Type },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #7
0
        public void GeoNames_Country_Population_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, long>>>
            {
                { "population", p => p.Population },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #8
0
        public void GeoNames_Country_NullableIntProperties_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, int?>>>
            {
                { "isoNumeric", p => p.IsoNumericCode },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #9
0
 public void Yahoo_GeoPlanet_BoundingBox_PointProperties_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<BoundingBox, Point>>>
     {
         { "southWest", p => p.Southwest },
         { "northEast", p => p.Northeast },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
 public void Yahoo_GeoPlanet_JsonAdminAttributes_StringProperties_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonAdminAttributes, string>>>
     {
         { "code", p => p.Code },
         { "type", p => p.Type },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #11
0
        public void Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Response, ResultSet>>>
            {
                { "ResultSet", p => p.ResultSet },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #12
0
        public void Yahoo_PlaceFinder_Result_BoundingBox_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Result, BoundingBox>>>
            {
                { "boundingbox", p => p.BoundingBox },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
 public void Yahoo_GeoPlanet_JsonPlace_JsonLocalityAttributes_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, JsonLocalityAttributes>>>
     {
         { "locality1 attrs", p => p.Locality1 },
         { "locality2 attrs", p => p.Locality2 },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #14
0
 public void Yahoo_GeoPlanet_Point_StringProperties_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<Point, double>>>
     {
         { "latitude", p => p.Latitude },
         { "longitude", p => p.Longitude },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #15
0
        public void GeoNames_Toponym_GeoNameId_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, int>>>
            {
                { "geonameId", p => p.GeoNameId },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #16
0
        public void GeoNames_Toponym_AlternateNamesList_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, ICollection<AlternateName>>>>
            {
                { "alternateNames", p => p.AlternateNamesList },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #17
0
        public void GeoNames_TimeZone_Id_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<TimeZone, string>>>
            {
                { "timeZoneId", p => p.Id },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
        public void GeoNames_PostalCodedCountry_NullableIntProperties_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<PostalCodedCountry, int?>>>
            {
                { "numPostalCodes", p => p.NumberOfPostalCodes },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
 public void Yahoo_GeoPlanet_JsonPlace_IntProperties_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, int>>>
     {
         { "woeid", p => p.WoeId },
         { "areaRank", p => p.AreaRank },
         { "popRank", p => p.PopulationRank },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #20
0
        public void Yahoo_PlaceFinder_Result_IntProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<Result, int>>>
            {
                { "quality", p => p.Quality },
                { "radius", p => p.RadiusInMeters },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #21
0
        public void GeoNames_Toponym_NullableIntProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, int?>>>
            {
                { "numberOfChildren", p => p.ChildCount },
                { "elevation", p => p.Elevation },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #22
0
        public void GeoNames_Toponym_DoubleProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, double>>>
            {
                { "lat", p => p.Latitude },
                { "lng", p => p.Longitude },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #23
0
        public void GeoNames_TimeZone_OffsetProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<TimeZone, double>>>
            {
                { "dstOffset", p => p.DstOffset },
                { "gmtOffset", p => p.GmtOffset },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #24
0
        public void Yahoo_PlaceFinder_Result_NullableDoubleProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<Result, double?>>>
            {
                { "offsetlat", p => p.OffsetLatitude },
                { "offsetlon", p => p.OffsetLongitude },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #25
0
        public void Yahoo_PlaceFinder_Result_DoubleProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<Result, double>>>
            {
                { "latitude", p => p.Latitude },
                { "longitude", p => p.Longitude },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Example #26
0
 public void Yahoo_GeoPlanet_JsonPlaceType_StringProperties_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, string>>>
     {
         { "lang", p => p.Language },
         { "placeTypeName", p => p.Name },
         { "placeTypeDescription", p => p.Description },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
        public void GeoNames_AlternateName_StringProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<AlternateName, string>>>
            {
                { "name", p => p.Name },
                { "lang", p => p.Language },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
 public void Yahoo_GeoPlanet_ConcordanceResponse_StringProperties_ShouldHaveDataContractAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<ConcordanceResponse, string>>>
     {
         { "iso", p => p.Iso },
         { "fips10", p => p.Fips10 },
         { "cctld", p => p.IanaTld },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
 public void Yahoo_GeoPlanet_JsonPlace_JsonAdminAttributes_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, JsonAdminAttributes>>>
     {
         { "country attrs", p => p.Country },
         { "admin1 attrs", p => p.Admin1 },
         { "admin2 attrs", p => p.Admin2 },
         { "admin3 attrs", p => p.Admin3 },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Example #30
0
        public void GeoNames_NearbyPostalCode_DoubleProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<NearbyPostalCode, double>>>
            {
                { "lat", p => p.Latitude },
                { "lng", p => p.Longitude },
                { "distance", p => p.Distance },
            };

            properties.ShouldHaveDataMemberAttributes();
        }