protected void AddAlert(string msg, FuncEntity <TEntity, bool> func)
        {
            var result = func(_Entity);

            if (result)
            {
                ValidationResult.Itens.Add(msg, EStatus.ALERT);
            }
        }
        protected void AddWarning(string msg, FuncEntity <TEntity, bool> func)
        {
            var result = func(_Entity);

            if (result)
            {
                ValidationResult.Itens.Add(msg, EStatus.WARNING);
            }
        }
        protected void AddSuccess(string msg, FuncEntity <TEntity, bool> func)
        {
            var result = func(_Entity);

            if (result)
            {
                ValidationResult.Itens.Add(msg, EStatus.SUCCESS);
            }
        }
 protected void AddIsValid(string msg, FuncEntity <TEntity, bool> func)
 {
     ValidationResult.Itens.Add(msg, func(_Entity));
 }
 protected void AddItem(string msg, FuncEntity <string, TEntity, ValidationItem> func)
 {
     ValidationResult.Itens.Add(func(msg, _Entity));
 }
 protected void AddStatus(string msg, FuncEntity <TEntity, EStatus> func)
 {
     ValidationResult.Itens.Add(msg, func(_Entity));
 }
        public static Entity Log(Entity entity)
        {
            var result = new FuncEntity(Constants.Funcs.LOG, entity);

            return(result);
        }
        public static Entity Cos(Entity entity)
        {
            var result = new FuncEntity(Constants.Funcs.COS, entity);

            return(result);
        }
        public static Entity Pow(Entity entity, Entity power)
        {
            var result = new FuncEntity(Constants.Funcs.POW, entity, power);

            return(result);
        }
        public static Entity Sqrt(Entity entity)
        {
            var result = new FuncEntity(Constants.Funcs.SQUAREROOT, entity);

            return(result);
        }
        public static Entity Exp(Entity entity)
        {
            var result = new FuncEntity(Constants.Funcs.EXP, entity);

            return(result);
        }