public void Setup()
		{
			context = new AuthorizationContext
          	{
				HttpContext = new TestControllerBuilder().HttpContext
          	};

			userRepository = MockRepositoryBuilder.CreateUserRepository();
			formsAuth = MockRepository.GenerateStub<IFormsAuthentication>();
			filter = new AuthenticateFilter(userRepository, formsAuth);
			
			originalPrincipal = Thread.CurrentPrincipal;
		}
		public void Setup()
		{
			context = new AuthorizationContext
          	{
				HttpContext = new TestControllerBuilder().HttpContext
          	};

            userRepositoryFactory = MockRepository.GenerateStub<IRepositoryFactory<User>>();
			userRepository = MockRepositoryBuilder.CreateUserRepository();
		    userRepositoryFactory.Stub(x => x.Resolve()).Return(userRepository).Repeat.Any();

			formsAuth = MockRepository.GenerateStub<IFormsAuthentication>();
            filter = new AuthenticateFilter(formsAuth, userRepositoryFactory);
			
			originalPrincipal = Thread.CurrentPrincipal;
		}