Closed timothyparez closed 7 years ago
The test could be improved upon. Currently it requires an Ipfs server running on the default port. A mock reponse could be used instead like this: https://github.com/TrekDev/net-ipfs-api/blob/master/src/Ipfs.Test/ClientTests.cs#L25
Get the Stream from the HttpClient and return it directly as opposed to downloading everything into a HttpResponseMessage first.
In order to do so I added
ExecuteGetStreamAsync
methods and tried tofollow the original structure as much as possible.
I included a test that generates a large file, adds it to IPFS and then tries to download it.