Interface IValidator<T>
데이터 유효성 검증 계약. 예외 대신 ValidationResult로 결과를 표현.
public interface IValidator<T>
Type Parameters
T검증 대상 타입.
Methods
Validate(T)
대상을 검증해 결과 반환.
ValidationResult Validate(T target)
Parameters
targetT검증할 객체.
Returns
- ValidationResult
성공/실패 및 오류 메시지를 담은 ValidationResult.