-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ add support for remote resource fetching (#281)
- Loading branch information
1 parent
aa1b44d
commit 0864fc6
Showing
9 changed files
with
171 additions
and
135 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
src/Mindee/Product/Fr/CarteVitale/CarteVitaleV1Document.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Mindee.Input; | ||
using Mindee.Product.Invoice; | ||
|
||
namespace Mindee.IntegrationTests.Input | ||
{ | ||
[Trait("Category", "URL loading")] | ||
public class UrlInputSourceTest | ||
{ | ||
[Fact] | ||
public async Task GivenARemoteFile_MustRetrieveResponse() | ||
{ | ||
var apiKey = Environment.GetEnvironmentVariable("Mindee__ApiKey"); | ||
var client = TestingUtilities.GetOrGenerateMindeeClient(apiKey); | ||
var remoteInput = new UrlInputSource("https://github.com/mindee/client-lib-test-data/blob/main/products/invoice_splitter/invoice_5p.pdf?raw=true"); | ||
var localInput = await remoteInput.AsLocalInputSource(); | ||
Assert.Equal("invoice_5p.pdf", localInput.Filename); | ||
var result = await client.ParseAsync<InvoiceV4>(localInput); | ||
Assert.Equal(5, result.Document.NPages); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
tests/Mindee.UnitTests/Product/Fr/CarteVitale/CarteVitaleV1Test.cs
This file was deleted.
Oops, something went wrong.