protected override void ValidateCore()
        {
            if (WorkTaskId.IsBlankIdentity())
            {
                AddError("", "Idenitity is invalid.");
            }

            if (CommentId.IsBlankIdentity())
            {
                AddError("", "Idenitity is invalid.");
            }
        }
Esempio 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.");
            }
        }