This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Fix untestable extension methods #527
Closed
Description
- https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http.Extensions/SendFileResponseExtensions.cs
- https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http.Extensions/FormFileExtensions.cs
These methods demand that files be on disk. What makes it worse is that these are extension methods so they cannot be stubbed.
Maybe we should make these virtual on HttpResponse
and IFormFile
(interface method).