Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
grumpydev committed Jun 16, 2011
1 parent 2a695b8 commit d21d537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nancy.ViewEngines.Razor.Tests/RazorViewCompilerFixture.cs
Expand Up @@ -18,11 +18,11 @@ public RazorViewCompilerFixture()
this.engine = new RazorViewEngine(this.configuration);

var cache = A.Fake<IViewCache>();
A.CallTo(() => cache.GetOrAdd(A<ViewLocationResult>.Ignored, A<Func<ViewLocationResult, NancyRazorViewBase>>.Ignored))
A.CallTo(() => cache.GetOrAdd(A<ViewLocationResult>.Ignored, A<Func<ViewLocationResult, Func<NancyRazorViewBase>>>.Ignored))
.ReturnsLazily(x =>
{
var result = x.GetArgument<ViewLocationResult>(0);
return x.GetArgument<Func<ViewLocationResult, NancyRazorViewBase>>(1).Invoke(result);
return x.GetArgument<Func<ViewLocationResult, Func<NancyRazorViewBase>>>(1).Invoke(result);
});

this.renderContext = A.Fake<IRenderContext>();
Expand Down

0 comments on commit d21d537

Please sign in to comment.