Beispiel #1
0
 /// <summary>
 /// The parameterless constructor
 /// </summary>
 public MailerBase()
 {
     if (HttpContext.Current != null) {
         CurrentHttpContext = new HttpContextWrapper(HttpContext.Current);
     } else if (IsTestModeEnabled) {
         CurrentHttpContext = new EmptyHttpContext();
     }
 }
Beispiel #2
0
 /// <summary>
 /// The parameterless constructor
 /// </summary>
 public MailerBase()
 {
     if (HttpContext.Current != null)
     {
         CurrentHttpContext = new HttpContextWrapper(HttpContext.Current);
     }
     else if (IsTestModeEnabled)
     {
         CurrentHttpContext = new EmptyHttpContext();
     }
 }