ResQ.Storage.PinataClient
PinataClient.MockUploadAsync(Stream, string, string, Dictionary<string,string>) Method
Generates a mock upload result with a fake CID for testing purposes.Parameters
content System.IO.Stream
The content stream to hash.
fileName System.String
The filename.
contentType System.String
The content type.
metadata System.Collections.Generic.Dictionary<System.String,System.String>
Optional metadata.
Returns
System.Threading.Tasks.Task<UploadResult>A mock UploadResult with a generated CID.