Exemplo n.º 1
0
        protected override void ValidateCore()
        {
            if (WorkTaskId.IsBlankIdentity())
            {
                AddError("", "Idenitity is invalid.");
            }

            if (CommentId.IsBlankIdentity())
            {
                AddError("", "Idenitity is invalid.");
            }
        }
Exemplo n.º 2
0
        protected override void ValidateCore()
        {
            if (WorkTaskId.IsBlankIdentity())
            {
                AddError("", "Idenitity is invalid.");
            }

            if (AuthorId.IsBlankIdentity())
            {
                AddError("", "Idenitity is invalid.");
            }

            if (!TextValidator.ValidateThatContentIsBetweenSpecifiedLength(Content, 1))
            {
                AddError("", "Content of the comment is invalid.");
            }
        }