コード例 #1
0
 public static IOptions <EmailOptions> GetOptions(StoresFixture storeFixture, string storeName = null)
 {
     return(Options.Create(new EmailOptions
     {
         Provider = new EmailProviderOptions
         {
             Type = "SendGrid",
             Parameters = new Dictionary <string, string>
             {
                 { "Key", storeFixture.SendGridKey },
                 { "User", storeFixture.SendGridUser },
             },
         },
         TemplateStorage = storeName,
         DefaultSender = new Internal.EmailAddress
         {
             DisplayName = "test user",
             Email = "*****@*****.**"
         },
         Mockup = new MockupOptions
         {
             Disclaimer = "",
             Exceptions = new MockupExceptionsOptions
             {
                 Domains = new List <string>(),
                 Emails = new List <string>(),
             },
             Recipients = new List <string>()
         }
     }));
 }
コード例 #2
0
 public SendTemplatedTest(StoresFixture fixture)
 {
     this.storeFixture = fixture;
 }
コード例 #3
0
 public SendSimpleEmailTest(StoresFixture fixture)
 {
     this.storeFixture = fixture;
 }