Пример #1
0
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateProperty(prefab, "Prefab");

            return(dataModelValidator.Errors);
        }
Пример #2
0
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateProperty(ground, "Ground");
            dataModelValidator.ValidateList(trees, "Trees");
            dataModelValidator.ValidateList(locations, "Locations");
            dataModelValidator.ValidateList(objects, "Objects");

            return(dataModelValidator.Errors);
        }
Пример #3
0
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateProperty(topLeft, "TopLeft");
            dataModelValidator.ValidateProperty(topLeftInside, "TopLeftInside");
            dataModelValidator.ValidateProperty(topMiddle, "TopMiddle");
            dataModelValidator.ValidateProperty(topRight, "TopRight");
            dataModelValidator.ValidateProperty(topRightInside, "TopRightInside");
            dataModelValidator.ValidateProperty(middleLeft, "MiddleLeft");
            dataModelValidator.ValidateProperty(middleRight, "MiddleRight");
            dataModelValidator.ValidateProperty(bottomLeft, "BottomLeft");
            dataModelValidator.ValidateProperty(bottomLeftInside, "BottomLeftInside");
            dataModelValidator.ValidateProperty(bottomMiddle, "BottomMiddle");
            dataModelValidator.ValidateProperty(bottomRight, "BottomRight");
            dataModelValidator.ValidateProperty(bottomRightInside, "BottomRightInside");

            return(dataModelValidator.Errors);
        }