public MailchimpStatsService(IMailChimpManager mailchimp, InfluxDBClient client,
                              ILogger <MailchimpStatsService> logger)
 {
     _mailchimp = mailchimp;
     _client    = client;
     _logger    = logger;
 }
        public SubscribeNewsletterPayload(IConfiguration configuration)
        {
            _configuration    = configuration;
            _mailChimpManager = new MailChimpManager(_configuration["mailChimp:apiKey"]);

            Name = nameof(SubscribeNewsletterPayload);
        }
Exemplo n.º 3
0
 public MailService(IMailChimpManager mailChimpManager, ILogger <MailService> logger, MailChimpConfig mailChimpConfig, MailConfig mailConfig)
 {
     _mailChimpManager = mailChimpManager;
     _logger           = logger;
     _mailChimpConfig  = mailChimpConfig;
     _mailConfig       = mailConfig;
 }
Exemplo n.º 4
0
 public NewsletterService(IOptions <NewsletterServiceOptions> options, ILogger <NewsletterService> logger, IBackgroundJobClient jobClient)
 {
     newsletterListId = options.Value.MailChimpNewsletterListId;
     mailChimpManager = new MailChimpManager(new MailChimpOptions()
     {
         ApiKey = options.Value.MailChimpKey
     });
     this.jobClient = jobClient;
     this.logger    = logger;
 }
Exemplo n.º 5
0
 public MailController(IMailChimpManager mailChimpManager, IMailService mailService, IContentService contentService, IViewRenderer viewRenderer, IBankHolidayService bankHolidayService, ILogger <MailController> logger, MailConfig mailConfig, MailChimpConfig mailChimpConfig)
 {
     _mailChimpManager   = mailChimpManager;
     _mailService        = mailService;
     _contentService     = contentService;
     _viewRenderer       = viewRenderer;
     _logger             = logger;
     _mailConfig         = mailConfig;
     _mailChimpConfig    = mailChimpConfig;
     _bankHolidayService = bankHolidayService;
 }
Exemplo n.º 6
0
 public void Initialize()
 {
     this._mailChimpManager = new MailChimpManager();
 }
Exemplo n.º 7
0
 /// <summary>
 /// The initialize.
 /// </summary>
 public MailChimpTest()
 {
     this.MailChimpManager = new MailChimpManager(null);
     RunBeforeTestFixture().Wait();
 }
 public MailchimpService(IConfiguration config)
 {
     _config          = config;
     mailChimpManager = new MailChimpManager(_config["MailChimp:ApiKey"]);
 }
        public SubscribeMailingListPayload()
        {
            _mailChimpManager = new MailChimp.Net.MailChimpManager(Env.GetString("MAILCHIMP_APIKEY"));

            Name = nameof(SubscribeMailingListPayload);
        }
Exemplo n.º 10
0
 public MailChimpSample(string apiKey)
 {
     manager = new MailChimpManager(apiKey);
 }
Exemplo n.º 11
0
 public MailchimpPickerApiController(IMailChimpManager mailChimpManager)
 {
     this.mailChimpManager = mailChimpManager;
 }
Exemplo n.º 12
0
 public MailChimpTest()
 {
     this.MailChimpManager = new MailChimpManager("681548ad94563c86a0af62bfdd183f44-us19");
     RunBeforeTestFixture().Wait();
 }
Exemplo n.º 13
0
 /// <summary>
 /// The initialize.
 /// </summary>
 public MailChimpTest()
 {
     this.MailChimpManager = new MailChimpManager("599629998b18960fa6e8a283d280ac28-us13");
     RunBeforeTestFixture().Wait();
 }
Exemplo n.º 14
0
 public MailChimpService(Settings settings)
 {
     _settings         = settings;
     _mailChimpManager = new MailChimpManager(settings.MailChimpSettings.ApiKey);
 }
Exemplo n.º 15
0
 public void Initialize()
 {
     this._mailChimpManager = new MailChimpManager();
     RunBeforeTestFixture().Wait();
 }
        public static async Task <IEnumerable <Campaign> > GetAllCampaign(IMailChimpManager mailChimpManager)
        {
            IEnumerable <Campaign> mailChimpCampaignCollection = await mailChimpManager.Campaigns.GetAllAsync().ConfigureAwait(false);

            return(mailChimpCampaignCollection);
        }
        public static async Task <IEnumerable <List> > GetList(IMailChimpManager mailChimpManager)
        {
            IEnumerable <List> mailChimpListCollection = await mailChimpManager.Lists.GetAllAsync().ConfigureAwait(false);

            return(mailChimpListCollection);
        }
Exemplo n.º 18
0
 public void Initialize()
 {
     this._mailChimpManager = new MailChimpManager();
 }
Exemplo n.º 19
0
 public MailchimpPickerApiController()
 {
     mailChimpManager = new MailChimpManager(ConfigurationManager.AppSettings[Constants.AppSettings.MailchimpApiKey]);
 }