You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NuGet package was out of date with the documentation. I just pushed an updated NuGet package so the follwing syntax should work now:
new FakeHttpRequest().Set(ctx => ctx.UrlReferrer, new Uri("http://google.com"));
----- Original Message -----
From: Jonas Gauffin [email protected]
To: mikevalenty/faken [email protected]
Date: 8/13/2012 1:48:22 AM
Subject: [faken] Last readme example is incorrect. (Latest nuget package) (#7)
The current code do not work:
var context = new FakeHttpContext();
var uri = new Uri("http://www.google.com/");
//set the UrlReferrer
context.Set(ctx => ctx.UrlReferrer, uri);
There is no Set() method which takes a lambda expression.
— Reply to this email directly or view it on GitHub.
The current code do not work:
There is no
Set()
method which takes a lambda expression.The text was updated successfully, but these errors were encountered: