Exemplo n.º 1
0
        public void SetResultForInvalidModel()
        {
            Result = null;
            dynamic pol = null;

            if (PolicyOverride != null)
            {
                pol = PolicyOverride.GetPolicy(_model);
            }
            else
            {
                pol = _factory.GetInstance(_validationFailedPolicy, _model);
            }
            var result = pol.GetResult(_ctrl);

            Result = result;
        }