コード例 #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();
        }
コード例 #2
0
 public void Yahoo_GeoPlanet_JsonPlace_BoundingBox_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, BoundingBox>>>
     {
         { "boundingBox", p => p.BoundingBox },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
コード例 #3
0
 public void Yahoo_GeoPlanet_JsonPlace_Center_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, Point>>>
     {
         { "centroid", p => p.Center },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
コード例 #4
0
 public void Yahoo_GeoPlanet_JsonPlaceTypeAttributes_Code_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceTypeAttributes, int>>>
     {
         { "code", p => p.Code },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
コード例 #5
0
ファイル: JsonPlaceTypeTests.cs プロジェクト: Gaploid/NGeo
 public void Yahoo_GeoPlanet_JsonPlaceType_JsonAttributes_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, JsonPlaceTypeAttributes>>>
     {
         { "placeTypeName attrs", p => p.JsonAttributes },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
コード例 #6
0
ファイル: JsonPlaceTypeTests.cs プロジェクト: Gaploid/NGeo
 public void Yahoo_GeoPlanet_JsonPlaceType_Uri_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, Uri>>>
     {
         { "uri", p => p.Uri },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
コード例 #7
0
 public void Yahoo_GeoPlanet_JsonLocalityAttributes_Type_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonLocalityAttributes, string>>>
     {
         { "type", p => p.Type },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
コード例 #8
0
ファイル: ResultTests.cs プロジェクト: Gaploid/NGeo
        public void Yahoo_PlaceFinder_Result_BoundingBox_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Result, BoundingBox>>>
            {
                { "boundingbox", p => p.BoundingBox },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #10
0
ファイル: ResultTests.cs プロジェクト: whu-linuxer/NGeo
        public void Yahoo_PlaceFinder_Result_BoundingBox_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <Result, BoundingBox> > >
            {
                { "boundingbox", p => p.BoundingBox },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #11
0
ファイル: ResultSetTests.cs プロジェクト: eastlands-zz/NGeo
        public void Yahoo_PlaceFinder_ResultSet_Items_ShouldHaveDataContractAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <ResultSet, List <Result> > > >
            {
                { "Results", p => p.ResultsList },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #12
0
ファイル: TimeZoneTests.cs プロジェクト: whu-linuxer/NGeo
        public void GeoNames_TimeZone_Id_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <TimeZone, string> > >
            {
                { "timeZoneId", p => p.Id },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #13
0
ファイル: ResultsTests.cs プロジェクト: whu-linuxer/NGeo
        public void GeoNames_Results_Items_ShouldHaveDataMemberAttribute()
        {
            var genericListProperties = new Dictionary <string, Expression <Func <Results <object>, List <object> > > >
            {
                { "geonames", p => p.Items },
            };

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

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #15
0
ファイル: CountryTests.cs プロジェクト: Gaploid/NGeo
        public void GeoNames_Country_Population_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, long>>>
            {
                { "population", p => p.Population },
            };

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

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

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #18
0
ファイル: ResponseTests.cs プロジェクト: WenhuaHu1224/NGeo
        public void Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Response, ResultSet>>>
            {
                { "ResultSet", p => p.ResultSet },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #19
0
        public void Yahoo_GeoPlanet_JsonPlaceType_Uri_ShouldHaveDataMemberAttributes()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlaceType, Uri> > >
            {
                { "uri", p => p.Uri },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #20
0
ファイル: JsonPlaceTests.cs プロジェクト: eastlands-zz/NGeo
        public void Yahoo_GeoPlanet_JsonPlace_BoundingBox_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlace, BoundingBox> > >
            {
                { "boundingBox", p => p.BoundingBox },
            };

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

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

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

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

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #25
0
ファイル: JsonPlaceTests.cs プロジェクト: eastlands-zz/NGeo
        public void Yahoo_GeoPlanet_JsonPlace_Center_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <JsonPlace, Point> > >
            {
                { "centroid", p => p.Center },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #26
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();
 }
コード例 #27
0
ファイル: ResultsTests.cs プロジェクト: whu-linuxer/NGeo
        public void GeoNames_Results_Size_ShouldHaveDataMemberAttribute()
        {
            var nullableIntProperties = new Dictionary <string, Expression <Func <Results <object>, int?> > >
            {
                { "totalResultsCount", p => p.Size },
            };

            nullableIntProperties.ShouldHaveDataMemberAttributes();
        }
コード例 #28
0
ファイル: BoundingBoxTests.cs プロジェクト: WenhuaHu1224/NGeo
 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();
 }
コード例 #29
0
        public void GeoNames_Hierarchy_Items_ShouldHaveDataMemberAttribute()
        {
            var genericListProperties = new Dictionary <string, Expression <Func <Hierarchy, List <Toponym> > > >
            {
                { "geonames", p => p.ItemsList },
            };

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

            genericListProperties.ShouldHaveDataMemberAttributes();
        }
コード例 #31
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();
 }
コード例 #32
0
ファイル: CountryTests.cs プロジェクト: Gaploid/NGeo
        public void GeoNames_Country_NullableIntProperties_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, int?>>>
            {
                { "isoNumeric", p => p.IsoNumericCode },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #33
0
        public void GeoNames_Toponym_GeoNameId_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, int>>>
            {
                { "geonameId", p => p.GeoNameId },
            };

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

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

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

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

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #38
0
ファイル: ResponseTests.cs プロジェクト: whu-linuxer/NGeo
        public void Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary <string, Expression <Func <Response, ResultSet> > >
            {
                { "ResultSet", p => p.ResultSet },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
コード例 #39
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();
 }
コード例 #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();
        }
コード例 #41
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();
        }
コード例 #42
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();
        }
コード例 #43
0
 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();
 }
コード例 #44
0
ファイル: BoundingBoxTests.cs プロジェクト: whu-linuxer/NGeo
        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();
        }
コード例 #45
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();
        }
コード例 #46
0
ファイル: PostalCodeTests.cs プロジェクト: whu-linuxer/NGeo
        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();
        }
コード例 #47
0
ファイル: ResultTests.cs プロジェクト: whu-linuxer/NGeo
        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();
        }
コード例 #48
0
ファイル: ResultTests.cs プロジェクト: whu-linuxer/NGeo
        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();
        }
コード例 #49
0
ファイル: ResultTests.cs プロジェクト: Gaploid/NGeo
        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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #52
0
 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();
 }
コード例 #53
0
ファイル: ResultTests.cs プロジェクト: Gaploid/NGeo
        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();
        }
コード例 #54
0
ファイル: JsonPlaceTests.cs プロジェクト: eastlands-zz/NGeo
        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();
        }
コード例 #55
0
ファイル: JsonPlaceTypeTests.cs プロジェクト: Gaploid/NGeo
 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();
 }
コード例 #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();
        }
コード例 #57
0
ファイル: ResultTests.cs プロジェクト: Gaploid/NGeo
        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();
        }
コード例 #58
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();
        }
コード例 #59
0
 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();
 }
コード例 #60
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();
        }