private static void ValidateAndThrowHttpError(this Asiento request, string ruleSet, IHttpRequest httpRequest, Factory factory) { ValidateAndThrowHttpError(request, ruleSet); CodigoDocumento cd = factory.GetCodigoDocumento(request.CodigoDocumento, httpRequest); CodigoDocumentoExtensiones.AssertExists(cd, request.CodigoDocumento); }