I have a Attribute which has the below property set.
actionContext.Request.Properties["isActiveUser"] = true
where actionContext is HttpActionContext actionContext
How do i carry out unit testing using fakes for the same
as using below code HttpRequestMessage() thows error
the type or namespace name 'httprequestmessage' could not be found.
HttpActionContext context = new HttpActionContext();
var headerValue = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", "bzUwkDal=");
var request = new System.Net.Http.HttpRequestMessage();
request.Headers.Authorization = headerValue;
var controllerContext = new HttpControllerContext();
controllerContext.Request = request;
context.ControllerContext = controllerContext;
context.Request.Properties["isActiveUser"] = false;