Ejemplo n.º 1
0
        public void CheckModel()
        {
            var model = new UserModel();

            model.UID      = Com.GetUUID();
            model.NickName = "a";
            model.PassWord = "******";
            model.Email    = "fafa";

            var errors = ValidateHelper.CheckEntity(model);

            errors = ValidateHelper.CheckEntity_(model);

            model.UID      = string.Empty;
            model.NickName = "hiwjcn";
            model.Email    = "*****@*****.**";
            errors         = ValidateHelper.CheckEntity(model);
            errors         = ValidateHelper.CheckEntity_(model);
        }