HttpPostedFileBase をモックするにはどうすればよいですか?
その小道具は読み取り専用で、ファイルアップロードモジュールをテストする必要があります。
どのモッキング フレームワークを使用すればよいですか?
public class FileUpload
{
private readonly HttpPostedFileBase _file;
private readonly string _filePath;
public FileUpload(HttpPostedFileBase file, string path)
{
_file = file;
_filePath = path;
}
.......