Skip to content

Instantly share code, notes, and snippets.

@prabirshrestha
Created October 2, 2012 23:48
Show Gist options
  • Save prabirshrestha/3824054 to your computer and use it in GitHub Desktop.
Save prabirshrestha/3824054 to your computer and use it in GitHub Desktop.
private void SetupFakeNancyCompleteCallback(NancyContext context)
{
A.CallTo(() => this.fakeEngine.HandleRequest(A<Request>.Ignored, A<Func<NancyContext, NancyContext>>.Ignored, A<Action<NancyContext>>.Ignored, A<Action<Exception>>.Ignored))
.Invokes((i => ((Action<NancyContext>)i.Arguments[2]).Invoke(context)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment