积极答复者
HttpPostedFileBase 如何做单元测试

问题
答案
-
请试试看:
http://blog.csainty.com/2009/01/aspnet-mvc-unit-test-file-upload-with.html
http://stackoverflow.com/questions/5515404/how-to-unit-test-asp-net-mvc-fileupload
http://stackoverflow.com/questions/8308899/unit-test-a-file-upload-how
- The blog of typewriter職人
- Convert C# to VB.NET
- /*If my concept is wrong ,please correct me.Thanks.*/
- 已标记为答案 Song TianModerator 2012年3月29日 10:02
-
就传递HttpPostedFileBase.InputStream
HttpPostedFileBase 只是一个通过httphandler处理来的对象,这个时候对象已经存在于服务器上了
就是说只要Action里面的断点发生,说明从客户端到服务器端的提交已经完毕了
- 已编辑 gsralexModerator 2012年3月24日 13:12
- 已标记为答案 Song TianModerator 2012年3月29日 10:02
全部回复
-
请试试看:
http://blog.csainty.com/2009/01/aspnet-mvc-unit-test-file-upload-with.html
http://stackoverflow.com/questions/5515404/how-to-unit-test-asp-net-mvc-fileupload
http://stackoverflow.com/questions/8308899/unit-test-a-file-upload-how
- The blog of typewriter職人
- Convert C# to VB.NET
- /*If my concept is wrong ,please correct me.Thanks.*/
- 已标记为答案 Song TianModerator 2012年3月29日 10:02
-
就传递HttpPostedFileBase.InputStream
HttpPostedFileBase 只是一个通过httphandler处理来的对象,这个时候对象已经存在于服务器上了
就是说只要Action里面的断点发生,说明从客户端到服务器端的提交已经完毕了
- 已编辑 gsralexModerator 2012年3月24日 13:12
- 已标记为答案 Song TianModerator 2012年3月29日 10:02