I have a simple mock HttRequestMessage
created by
public static HttpRequestMessage FromJson(string uriString, string json = null)
{
var request = new HttpRequestMessage()
{
RequestUri = new Uri(uriString)
};
if (json != null)
{
request.Content = new HttpContentJson(json);
}
request.Properties.Add("HttpContext", new DefaultHttpContext() { });
return request;
}
and when req.CreateErrorResponse(…)
is run it gives a non-useful exception message
System.ArgumentNullException: 'Value cannot be null. Parameter name: provider'
So, what is provider
?