Hello,
As a suggestion, I find myself using these lines of code a great deal (don't worry about the code itself, but I use these keywords a lot):
var httpCtx = Isolate.Fake.Instance<HttpContextWrapper>(); Isolate.Swap.NextInstance<HttpContextWrapper>().With(httpCtx);
and
Isolate.Fake.StaticMethods(typeof(HttpContext));
Isolate.WhenCalled(() => HttpContext.Current).WillReturn(ctx);
I think it would be very helpful, and save me a lot of time, to be able to combine these two statements into one, something like:
var httpCtx = Isolate.Swap.NextInstance<HttpContextWrapper>().WithNewFake();
and
Isolate.WhenCalled(() => HttpContext.Current).StaticMethod().WillReturn(ctx);
That would save a lot of coding time in the long run, since it's a pretty popular option in my design.
Thanks.