WebAPI Preview 5
I m getting following error while unit testing delegatingHandler as mentioned above by you.
In a unit test when it successfully process logic in the Delegating Handler and throws exception at "return base.SendAsync(request, cancellationToken);"
System.InvalidOperationException : The inner handler has not been assigned.
"return base.SendAsync(request, cancellationToken);" works fine for the normal course of the application flow. It just the unit tests.
Do we need set up the WebAPiConfiguration/HttpConfiguration so it does not through exception ???