public void Setup() { _transformLinesIntoSenteces = new Mock <ITransformLinesIntoSentences>(); _sortIntoLogicalLines = new Mock <ISortIntoLogicalLines>(); _getLinesOrderedByTopPosition = new Mock <IGetLinesOrderedByTopPosition>(); _target = new AzureOcrParser(_transformLinesIntoSenteces.Object, _sortIntoLogicalLines.Object, _getLinesOrderedByTopPosition.Object); }
private AzureOcrEngine(AzureOcrApi azureVisionApi, IOcrPreProcessing ocrPreProcessing, AzureOcrParser azureOcrParser) { _azureVisionApi = azureVisionApi; _ocrPreProcessing = ocrPreProcessing; _azureOcrParser = azureOcrParser; }