Exemplo n.º 1
0
        public Send(IEmailCreator emailCreator, IEmailSender emailSender)
        {
            Guard.Against.Null(emailCreator, nameof(emailCreator));
            Guard.Against.Null(emailSender, nameof(emailSender));

            _emailCreator = emailCreator;
            _emailSender  = emailSender;
        }
Exemplo n.º 2
0
 public CSVCreator(INameCreator nc, IDateCreator dc, IPhoneCreator pc, ICityCreator cc, IEmailCreator ec)
 {
     nameCreator  = nc;
     dateCreator  = dc;
     phoneCreator = pc;
     cityCreator  = cc;
     emailCreator = ec;
 }
 public EmailRequestClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _emailFromTemplateCreator = new EmailCreator(new ExactTargetConfiguration
     {
         ApiUserName = _config.ApiUserName,
         ApiPassword = _config.ApiPassword,
         ClientId    = _config.ClientId,
         EndPoint    = _config.EndPoint,
         SoapBinding = _config.SoapBinding
     });
 }
 public EmailRequestClient(IExactTargetConfiguration config)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _emailFromTemplateCreator = new EmailCreator(new ExactTargetConfiguration
     {
         ApiUserName = _config.ApiUserName,
         ApiPassword = _config.ApiPassword,
         ClientId = _config.ClientId,
         EndPoint = _config.EndPoint,
         SoapBinding = _config.SoapBinding
     });
 }
 public EmailRequestClient(IExactTargetConfiguration config, IEmailCreator emailFromTemplateCreator)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _emailFromTemplateCreator = emailFromTemplateCreator;
 }
 public EmailRequestClient(IExactTargetConfiguration config, IEmailCreator emailFromTemplateCreator)
 {
     _config = config;
     _client = SoapClientFactory.Manufacture(config);
     _emailFromTemplateCreator = emailFromTemplateCreator;
 }
Exemplo n.º 7
0
 public SendGridSender(ISendGridClient client, IEmailCreator <SendGridMessage> emailCreator)
 {
     this.client       = client;
     this.emailCreator = emailCreator;
 }