Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 3
0
 public FubuContinuation Login(WindowsSignInRequest request)
 {
     var principal = _context.Current();
     return _strategy.Authenticate(request, principal);
 }
Ejemplo n.º 4
0
 public void SetUp()
 {
     theRequest = new WindowsSignInRequest();
 }
 public void SetUp()
 {
     theRequest = new WindowsSignInRequest();
 }