Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added support for authenticating a request #4

Closed
wants to merge 4 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

tmont commented Apr 27, 2012

var request = new FakeHttpRequest();
Console.WriteLine(request.IsAuthenticated); //False: previously a NotImplementedException
request.SetAuthenticated(true);
Console.WriteLine(request.IsAuthenticated); //True

Also extended the FakeHttpContext.Authenticate() extension method:

var context = new FakeHttpContext();
context.Authenticate();
Console.WriteLine(context.Request.IsAuthenticated); //True
Contributor

tmont commented Apr 27, 2012

I'm closing this because I'm making it more awesome.

@tmont tmont closed this Apr 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment