예제 #1
0
        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);
        }
예제 #2
0
        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);
        }