public static bool IsErrorsDocument(this IDocumentReader documentReader) { Contract.Requires(documentReader != null); var documentType = documentReader.GetDocumentType(); return(documentType.IsErrorsDocument()); }
public static bool IsValidDocument(this IDocumentReader documentReader) { Contract.Requires(documentReader != null); var documentType = documentReader.GetDocumentType(); var documentMeta = documentReader.GetDocumentMeta(); return(documentType.IsValidDocument(documentMeta)); }