public async Task ProcessReceipt_ShouldBeOk() { // Arrange var parameters = new ReceiptProcessingParams { Countries = new [] { ReceiptRecognizingCountry.Russia, } }; // Act TaskInfo processReceiptTask; using (var fileStream = GetResourceFileStream(TestFile.Image)) { processReceiptTask = await ApiClient.ProcessReceiptAsync( parameters, fileStream, TestFile.Image, true ); } // Assert CheckResultTask(processReceiptTask); }
/// <inheritdoc /> public Task <TaskInfo> ProcessReceiptAsync( ReceiptProcessingParams parameters, Stream fileStream, string fileName, bool waitTaskFinished = false, CancellationToken cancellationToken = default) { return(StartTaskAsync( HttpMethod.Post, Urls.Ocr.ProcessReceipt, parameters, fileStream, fileName, waitTaskFinished, cancellationToken)); }