Exemple #1
0
        public void GeoNames_Toponym_StringProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary <string, Expression <Func <Toponym, string> > >
            {
                { "name", p => p.Name },
                { "toponymName", p => p.ToponymName },
                { "fcl", p => p.FeatureClassCode },
                { "fclName", p => p.FeatureClassName },
                { "fcode", p => p.FeatureCode },
                { "fcodeName", p => p.FeatureName },
                { "continentCode", p => p.ContinentCode },
                { "countryCode", p => p.CountryCode },
                { "countryName", p => p.CountryName },
                { "adminCode1", p => p.Admin1Code },
                { "adminName1", p => p.Admin1Name },
                { "adminCode2", p => p.Admin2Code },
                { "adminName2", p => p.Admin2Name },
                { "adminCode3", p => p.Admin3Code },
                { "adminName3", p => p.Admin3Name },
                { "adminCode4", p => p.Admin4Code },
                { "adminName4", p => p.Admin4Name },
            };

            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_JsonPlace_Center_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, Point>>>
     {
         { "centroid", p => p.Center },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
 public void Yahoo_GeoPlanet_JsonPlaceTypeAttributes_Code_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceTypeAttributes, int>>>
     {
         { "code", p => p.Code },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Exemple #5
0
 public void Yahoo_GeoPlanet_JsonPlaceType_JsonAttributes_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, JsonPlaceTypeAttributes>>>
     {
         { "placeTypeName attrs", p => p.JsonAttributes },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
Exemple #6
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();
 }
Exemple #8
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 GeoNames_PostalCodedCountry_NullableIntProperties_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<PostalCodedCountry, int?>>>
            {
                { "numPostalCodes", p => p.NumberOfPostalCodes },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #11
0
        public void Yahoo_PlaceFinder_ResultSet_Items_ShouldHaveDataContractAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <ResultSet, List <Result> > > >
            {
                { "Results", p => p.ResultsList },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #13
0
        public void GeoNames_Results_Items_ShouldHaveDataMemberAttribute()
        {
            var genericListProperties = new Dictionary <string, Expression <Func <Results <object>, List <object> > > >
            {
                { "geonames", p => p.Items },
            };

            genericListProperties.ShouldHaveDataMemberAttributes();
        }
        public void Yahoo_GeoPlanet_JsonPlaceTypeAttributes_Code_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlaceTypeAttributes, int> > >
            {
                { "code", p => p.Code },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #15
0
        public void GeoNames_Country_Population_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, long>>>
            {
                { "population", p => p.Population },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #17
0
        public void GeoNames_Toponym_TimeZone_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <Toponym, TimeZone> > >
            {
                { "timezone", p => p.TimeZone },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #18
0
        public void Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Response, ResultSet>>>
            {
                { "ResultSet", p => p.ResultSet },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
        public void Yahoo_GeoPlanet_JsonPlaceType_Uri_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlaceType, Uri> > >
            {
                { "uri", p => p.Uri },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #20
0
        public void Yahoo_GeoPlanet_JsonPlace_BoundingBox_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlace, BoundingBox> > >
            {
                { "boundingBox", p => p.BoundingBox },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #22
0
        public void Yahoo_GeoPlanet_JsonLocalityAttributes_Type_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonLocalityAttributes, string> > >
            {
                { "type", p => p.Type },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #24
0
        public void GeoNames_Country_GeoNameId_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <Country, int> > >
            {
                { "geonameId", p => p.GeoNameId },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #25
0
        public void Yahoo_GeoPlanet_JsonPlace_Center_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlace, Point> > >
            {
                { "centroid", p => p.Center },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
 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();
 }
Exemple #27
0
        public void GeoNames_Results_Size_ShouldHaveDataMemberAttribute()
        {
            var nullableIntProperties = new Dictionary <string, Expression <Func <Results <object>, int?> > >
            {
                { "totalResultsCount", p => p.Size },
            };

            nullableIntProperties.ShouldHaveDataMemberAttributes();
        }
Exemple #28
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();
 }
Exemple #29
0
        public void GeoNames_Hierarchy_Items_ShouldHaveDataMemberAttribute()
        {
            var genericListProperties = new Dictionary <string, Expression <Func <Hierarchy, List <Toponym> > > >
            {
                { "geonames", p => p.ItemsList },
            };

            genericListProperties.ShouldHaveDataMemberAttributes();
        }
Exemple #30
0
        public void GeoNames_PostalCodeResults_Items_ShouldHaveDataMemberAttribute()
        {
            var genericListProperties = new Dictionary <string, Expression <Func <PostalCodeResults, List <PostalCode> > > >
            {
                { "postalcodes", p => p.Items },
            };

            genericListProperties.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();
 }
Exemple #32
0
        public void GeoNames_Country_NullableIntProperties_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, int?>>>
            {
                { "isoNumeric", p => p.IsoNumericCode },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
        public void GeoNames_Toponym_GeoNameId_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, int>>>
            {
                { "geonameId", p => p.GeoNameId },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #34
0
        public void GeoNames_Country_Population_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <Country, long> > >
            {
                { "population", p => p.Population },
            };

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

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

            properties.ShouldHaveDataMemberAttributes();
        }
        public void Yahoo_GeoPlanet_JsonPlaceType_JsonAttributes_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlaceType, JsonPlaceTypeAttributes> > >
            {
                { "placeTypeName attrs", p => p.JsonAttributes },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #38
0
        public void Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <Response, ResultSet> > >
            {
                { "ResultSet", p => p.ResultSet },
            };

            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();
 }
Exemple #40
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();
        }
        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();
        }
        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();
        }
 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();
 }
Exemple #44
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 GeoNames_Toponym_NullableIntProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, int?>>>
            {
                { "numberOfChildren", p => p.ChildCount },
                { "elevation", p => p.Elevation },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #46
0
        public void GeoNames_PostalCode_DoubleProperties_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary <string, Expression <Func <PostalCode, double> > >
            {
                { "lat", p => p.Latitude },
                { "lng", p => p.Longitude },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
Exemple #47
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();
        }
Exemple #48
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();
        }
Exemple #49
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();
        }
Exemple #50
0
        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();
        }
Exemple #51
0
        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();
        }
 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();
 }
Exemple #53
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();
        }
Exemple #54
0
        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();
        }
Exemple #55
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();
 }
Exemple #56
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();
        }
Exemple #57
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();
        }
        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_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();
 }
        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();
        }