Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 3
0
		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;
		}
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 5
0
		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);
		}