protected override void beforeEach()
 {
     _resolver.Stub(r => r.PrimaryApplicationUrl()).Return("PRIMARY");
     _output = _controller.Login(new LoginAttemptViewModel {
         Username = "******", Password = "******"
     });
 }
 protected override void beforeEach()
 {
     _resolver.Stub(r => r.UrlFor <LoginController>(l => l.Index(null))).IgnoreArguments().Return("LOGIN");
     _attempt = new LoginAttemptViewModel {
         Username = "******", Password = "******"
     };
     _output = _controller.Login(_attempt);
 }
        public void should_return_model_from_flash()
        {
            var model = new LoginAttemptViewModel();

            _flash.Stub(f => f.Retrieve <LoginAttemptViewModel>()).Return(model);

            _controller.Index(null).ShouldBeTheSameAs(model);
        }
 protected override void beforeEach()
 {
     _resolver.Stub(r => r.UrlFor<LoginController>(l => l.Index(null))).IgnoreArguments().Return("LOGIN");
     _attempt = new LoginAttemptViewModel { Username = "******", Password = "******" };
     _output = _controller.Login(_attempt);
 }
        public void should_return_model_from_flash()
        {
            var model = new LoginAttemptViewModel();
            _flash.Stub(f => f.Retrieve<LoginAttemptViewModel>()).Return(model);

            _controller.Index(null).ShouldBeTheSameAs(model);
        }
 protected override void beforeEach()
 {
     _resolver.Stub(r => r.PrimaryApplicationUrl()).Return("PRIMARY");
     _output = _controller.Login(new LoginAttemptViewModel { Username = "******", Password = "******" });
 }