Пример #1
0
        public void RegisterModelBinder()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterModelBinder(new TestModelBinder());
        }
Пример #2
0
        public void RegisterModelBinderWithNull()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterModelBinder(a_modelBinder: null);
        }
Пример #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);
        }
Пример #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;
        }
Пример #5
0
        public void RegisterModelBinderWithNull()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterModelBinder(a_modelBinder: null);
        }
Пример #6
0
        public void RegisterModelBinder()
        {
            // Setup
            var viewHandler = new ViewHandler();

            // Execute
            viewHandler.RegisterModelBinder(new TestModelBinder());
        }