public ApplicationMessageBuilder( string defaultFrom, ICommonFilesFacade files, ITextBuilder textBuilder, IRecipientsFacade recipients, ITemplateRepositoryHelper templates, ISerializer serializer, IApplicationRepository applications) { _defaultFrom = defaultFrom; _files = files; _textBuilder = textBuilder; _recipients = recipients; _templates = templates; _serializer = serializer; _applications = applications; }
public CommonEventMessageBuilder( string defaultFrom, IRecipientsFacade recipients, ISerializer serializer, ITextBuilder textBuilder, ILocalizedDataHelper localizedHelper, ITemplateRepositoryHelper templates, ICommonFilesFacade files) { _defaultFrom = defaultFrom; _recipients = recipients; _serializer = serializer; _textBuilder = textBuilder; _localizedHelper = localizedHelper; _templates = templates; _files = files; }
private static IMessageBuilder GetCommonMessageBuilder( IDbConnection connection, string mainConnectionString, string filesConnectionString, ILocalizedDataHelper localizedDataHelper, IRecipientsFacade recipientsFacade) { var executor = new SqlProcedureExecutor(mainConnectionString); var templateRepository = new TemplateRepository(executor); var textBuilder = new TextBuilder(); var templateRepositoryWrapper = new TemplateRepositoryHelper(templateRepository); var filesFacade = GetFilesFacade(connection, mainConnectionString, filesConnectionString); return(new CommonEventMessageBuilder( EmailsHelper.DefaultFrom, recipientsFacade, new Serializer(), textBuilder, localizedDataHelper, templateRepositoryWrapper, filesFacade)); }
private static IMessageBuilder GetCommonMessageBuilder( IDbConnection connection, string mainConnectionString, string filesConnectionString, ILocalizedDataHelper localizedDataHelper, IRecipientsFacade recipientsFacade) { var executor = new SqlProcedureExecutor(mainConnectionString); var templateRepository = new TemplateRepository(executor); var textBuilder = new TextBuilder(); var templateRepositoryWrapper = new TemplateRepositoryHelper(templateRepository); var filesFacade = GetFilesFacade(connection, mainConnectionString, filesConnectionString); return new CommonEventMessageBuilder( EmailsHelper.DefaultFrom, recipientsFacade, new Serializer(), textBuilder, localizedDataHelper, templateRepositoryWrapper, filesFacade); }