public override bool IsValid(params ILegalPerson[] persons) { var defendant = this.Defendant(persons); if (defendant == null) { return(false); } var title = defendant.GetLegalPersonTypeName(); var gather = IsGatherer(defendant); var trasmit = IsTransmitor(defendant); if (!(_information is NationalDefenseInformation)) { AddReasonEntry($"{title} {defendant.Name}, {_information.GetCategory()} " + $"is not {nameof(NationalDefenseInformation)}"); return(false); } if (!gather && !trasmit) { AddReasonEntry($"{title} {defendant.Name}, {nameof(IsGatherer)} " + $"and {nameof(IsTransmitor)} of {_information.GetCategory()} are false"); return(false); } return(true); }
public virtual string GetCategory() { return(_termCategory.GetCategory()); }