Class TestUploadedFile
An uploaded file for testing the handlers of chunked uploads without a request. Its content is in a temporary file, which is deleted when it is disposed unless the handler moved it.
Inherited Members
Namespace: Singulink.Net.Http.Api.Service.Testing
Assembly: Singulink.Net.Http.Api.Service.Testing.dll
Syntax
public sealed class TestUploadedFile : UploadedFile, IBindableFromHttpContext<UploadedFile>, IDisposable
Methods
| Name | Description |
|---|---|
| Create(byte[], string, string?) | Creates an uploaded file with the specified content in a temporary file, which FilePath has. |
| Create<TCommand>(byte[], string, TCommand, string?) | Creates an uploaded file with the specified content in a temporary file, which FilePath has, and the specified command. |
| Dispose() | Deletes the temporary file, unless it was moved. |