In c# .net how to read this data without using httpContext
because when I am writing unit test cases httpContext
is getting null.
int messageID = Convert.ToInt32(HttpContext.Current.Request.Params["messageId"]);
var httpPostedFile = HttpContext.Current.Request.Files["attachmentdata"];