public void GeoNames_PostalCodeResults_Items_ShouldHaveDataMemberAttribute() { var genericListProperties = new Dictionary<string, Expression<Func<PostalCodeResults, List<PostalCode>>>> { { "postalcodes", p => p.Items }, }; genericListProperties.ShouldHaveDataMemberAttributes(); }
public void GeoNames_Hierarchy_Items_ShouldHaveDataMemberAttribute() { var genericListProperties = new Dictionary<string, Expression<Func<Hierarchy, List<Toponym>>>> { { "geonames", p => p.ItemsList }, }; genericListProperties.ShouldHaveDataMemberAttributes(); }
public void GeoNames_Results_Size_ShouldHaveDataMemberAttribute() { var nullableIntProperties = new Dictionary<string, Expression<Func<Results<object>, int?>>> { { "totalResultsCount", p => p.Size }, }; nullableIntProperties.ShouldHaveDataMemberAttributes(); }
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_PlaceFinder_ResultSet_Items_ShouldHaveDataContractAttribute() { var properties = new Dictionary<string, Expression<Func<ResultSet, List<Result>>>> { { "Results", p => p.ResultsList }, }; properties.ShouldHaveDataMemberAttributes(); }
public void Yahoo_GeoPlanet_Places_IntProperties_ShouldHaveDataMemberAttributes() { var properties = new Dictionary<string, Expression<Func<Places, int>>> { { "start", p => p.Start }, { "count", p => p.Count }, { "total", p => p.Total }, }; properties.ShouldHaveDataMemberAttributes(); }
public void Yahoo_PlaceFinder_ResultSet_IntProperties_ShouldHaveDataContractAttribute() { var properties = new Dictionary<string, Expression<Func<ResultSet, int>>> { { "Error", p => p.ErrorCode }, { "Found", p => p.Found }, { "Quality", p => p.Quality }, }; properties.ShouldHaveDataMemberAttributes(); }
public void Yahoo_PlaceFinder_StringProperties_ShouldHaveDataContractAttribute() { var properties = new Dictionary<string, Expression<Func<ResultSet, string>>> { { "ErrorMessage", p => p.ErrorMessage }, { "Locale", p => p.Locale }, }; properties.ShouldHaveDataMemberAttributes(); }