protected override void beforeEach() { thePrincipal = new WindowsPrincipal(WindowsIdentity.GetAnonymous()); theContinuation = FubuContinuation.EndWithStatusCode(HttpStatusCode.Accepted); theRequest = new WindowsSignInRequest(); MockFor <IWindowsAuthenticationContext>().Stub(x => x.Current()).Return(thePrincipal); MockFor <IWindowsAuthentication>().Stub(x => x.Authenticate(theRequest, thePrincipal)).Return(theContinuation); }
protected override void beforeEach() { thePrincipal = new WindowsPrincipal(WindowsIdentity.GetAnonymous()); theRequest = new WindowsSignInRequest(); MockFor <IWindowsPrincipalHandler>().Stub(x => x.Authenticated(thePrincipal)) .Return(true); theContinuation = ClassUnderTest.Authenticate(theRequest, thePrincipal); }
public FubuContinuation Login(WindowsSignInRequest request) { var principal = _context.Current(); return _strategy.Authenticate(request, principal); }
public void SetUp() { theRequest = new WindowsSignInRequest(); }
public void SetUp() { theRequest = new WindowsSignInRequest(); }