示例#1
0
        public void SimpleSchema()
        {
            var schema = new SimpleTypeSchema("Currency", typeof(string))
                         .SetStringMinLength(3);

            schema.Name.Should().Be("Currency");
            schema.Type.Should().Be(typeof(string));

            schema.AsMetadataProvider().GetMetadataContainer().Count.Should().Be(1);
        }