Exemple #1
0
        private EmailSenderObtainer CreateObtainer()
        {
            var mailBoxRepository = new SupportMailBoxRepository(UserConnection);
            var contactCommLang   = new ContactCommLanguage(UserConnection);

            return(new EmailSenderObtainer(mailBoxRepository, contactCommLang)
            {
                UseCategory = UseCategory,
                IsMultilanguageEnabled = IsMultilanguageEnabled
            });
        }
 /// <summary>
 /// Initialize new instance of <see cref="ContactLangEmailTemplateHandler" />.
 /// </summary>
 /// <param name="entity">Entity.</param>
 /// <param name="userConnection"User connection.></param>
 public ContactLangEmailTemplateHandler(Entity entity, UserConnection userConnection)
     : base(entity, userConnection)
 {
     _commLang = new ContactCommLanguage(UserConnection);
 }
 /// <summary>
 /// Initialize new instance of <see cref="ContactLangEmailTemplateHandler" />.
 /// </summary>
 /// <param name="caseId">Case record indentifier.</param>
 /// <param name="userConnection">User connection.</param>
 public ContactLangEmailTemplateHandler(Guid caseId, UserConnection userConnection)
     : base(caseId, userConnection)
 {
     _commLang = new ContactCommLanguage(UserConnection);
 }