private string CreateSubject(PropertyMessageTypeEnum messageType) { var template = _templateDataService.GetString(GetSubjectTemplateName(messageType)); if (template == null) { throw new NullReferenceException(nameof(template)); } return(template); }