Exemplo n.º 1
0
        public void RegisterMultipleViewTargets()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterViewTarget(new TestViewTarget());
            viewHandler.RegisterViewTarget(new TestViewTarget());
        }
Exemplo n.º 2
0
        public void RegisterViewTargetWithNull()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterViewTarget(a_viewTarget: null);
        }
Exemplo n.º 3
0
        private ViewHandler InitializeViewHandler()
        {
            _typeCatalog = new TestTypeCatalog();
            _modelBinder = new TestModelBinder();
            _viewTarget  = new TestViewTarget();

            var viewHandler = new ViewHandler();

            viewHandler.RegisterViewCatalog(_typeCatalog);
            viewHandler.RegisterModelBinder(_modelBinder);
            viewHandler.RegisterViewTarget(_viewTarget);

            return(viewHandler);
        }
Exemplo n.º 4
0
        private ViewHandler InitializeViewHandler()
        {
            _typeCatalog = new TestTypeCatalog();
            _modelBinder = new TestModelBinder();
            _viewTarget = new TestViewTarget();

            var viewHandler = new ViewHandler();
            viewHandler.RegisterViewCatalog(_typeCatalog);
            viewHandler.RegisterModelBinder(_modelBinder);
            viewHandler.RegisterViewTarget(_viewTarget);

            return viewHandler;
        }
Exemplo n.º 5
0
        public void RegisterViewTargetWithNull()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterViewTarget(a_viewTarget: null);
        }
Exemplo n.º 6
0
        public void RegisterViewTarget()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterViewTarget(new TestViewTarget());
        }