IsValid() 공개 정적인 메소드

Determines whether the specified object passes validation without errors.
public static IsValid ( object obj ) : bool
obj object The object.
리턴 bool
예제 #1
0
        public void ValidObjectPassesValidation()
        {
            var dto = BuildDto(true);

            Assert.That(ExtendedValidator.IsValid(dto), Is.True);
        }
예제 #2
0
        public void ValidObjectPassesRequiredOnlyValidation()
        {
            var dto = BuildDto(true);

            Assert.That(ExtendedValidator.IsValid(dto, false), Is.True);
        }