Exemple #1
0
 public void SetUp()
 {
     _renderer          = MockRepository.GenerateStub <IWebFormsViewRenderer>();
     _conventions       = new FubuConventions();
     _authenticatedUser = new User {
         IsAuthenticated = true
     };
     _notAuthenticatedUser = new User {
         IsAuthenticated = false
     };
     _expression = new LoginStatusExpression(null, _renderer, _conventions);
 }
        public void SetUp()
        {
            _conventions = new FubuConventions();

            _view = MockRepository.GenerateStub<IFubuView<TestModel>>();
            _renderer = MockRepository.GenerateStub<IWebFormsViewRenderer>();

            _model = new TestModel();
            _partialModel = new PartialTestModel();

            _model.PartialModel = _partialModel;

            _view.Stub(v => v.Model).Return(_model);

            _forExpression = new RenderPartialExpression(_view, _renderer, _conventions)
                                .Using<TestUserControl>();
        }
 public LoginStatusExpression(IFohjinPage viewPage, IWebFormsViewRenderer renderer, FubuConventions conventions)
 {
     _viewPage    = viewPage;
     _renderer    = renderer;
     _conventions = conventions;
 }