public SparkPostClientTests() { var options = new SparkPostOptions { ApiKey = Environment.GetEnvironmentVariable("SPARKPOST_APIKEY") }; this.Client = new SparkPostClient(Options.Create(options)); this.SendingDomain = Environment.GetEnvironmentVariable("SPARKPOST_SENDINGDOMAIN"); }
public SparkPostMailer(IOptions <SparkPostOptions> optionsAccessor) { _options = optionsAccessor.Value; }