private void PropertyFilter_validates_enum_types(PropertyFilter filter) { var properties = new List <PropertyInfo> { new MockPropertyInfo(typeof(AnEnum1), "EnumProp") }; filter.ValidatePropertiesForModelVersion(typeof(AType1), properties); }
private void PropertyFilter_validates_spatial_types(PropertyFilter filter) { var properties = new List <PropertyInfo> { new MockPropertyInfo(typeof(DbGeography), "Geography"), new MockPropertyInfo(typeof(DbGeometry), "Geometry") }; filter.ValidatePropertiesForModelVersion(new MockType(), properties); }
private void PropertyFilter_validates_enum_types(PropertyFilter filter) { var mockType = new MockType(); mockType.Setup(m => m.IsEnum).Returns(true); var properties = new List <PropertyInfo> { new MockPropertyInfo(mockType, "EnumProp") }; filter.ValidatePropertiesForModelVersion(mockType, properties); }
private void PropertyFilter_validates_spatial_types(PropertyFilter filter) { var properties = new List<PropertyInfo> { new MockPropertyInfo(typeof(DbGeography), "Geography"), new MockPropertyInfo(typeof(DbGeometry), "Geometry") }; filter.ValidatePropertiesForModelVersion(new MockType(), properties); }
private void PropertyFilter_validates_enum_types(PropertyFilter filter) { var mockType = new MockType(); mockType.Setup(m => m.IsEnum).Returns(true); var properties = new List<PropertyInfo> { new MockPropertyInfo(mockType, "EnumProp") }; filter.ValidatePropertiesForModelVersion(mockType, properties); }
private void PropertyFilter_validates_enum_types(PropertyFilter filter) { var properties = new List<PropertyInfo> { new MockPropertyInfo(typeof(AnEnum1), "EnumProp") }; filter.ValidatePropertiesForModelVersion(typeof(AType1), properties); }