private void AssertCustomOcrPathExist()
{
if (string.IsNullOrWhiteSpace(_configuration.OCRSoftwarePath))
{
return;
}
if (Directory.Exists(_configuration.OCRSoftwarePath))
{
return;
}
throw new DirectoryNotFoundException(string.Format(Properties.Resources.OcrSoftwareNotFoundError, _ocrSoftware.GetType().Name, _configuration.OCRSoftwarePath));
}