示例#1
0
        public void IsNotInRange_Valid()
        {
            validationContext.When("age", 11)
            .IsNotInRange(10, 12)
            .AddValidationDetail("template1");

            validationContext.EnsureIsValid();
        }
 public void EnsureIsValid()
 {
     validationContext.EnsureIsValid("Model");
 }