예제 #1
0
 public void SendAddedToOrganization()
 {
     var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>());
     User user = UserData.GenerateSampleUser();
     Organization organization = OrganizationData.GenerateSampleOrganization();
     mailer.SendAddedToOrganization(user, organization, user);
 }
예제 #2
0
 public void SendInvite() {
     var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>());
     User user = UserData.GenerateSampleUser();
     Organization organization = OrganizationData.GenerateSampleOrganization();
     mailer.SendInvite(user, organization, new Invite {
         DateAdded = DateTime.Now,
         EmailAddress = Settings.Current.TestEmailAddress,
         Token = "1"
     });
 }
예제 #3
0
 public void SendNotification() {
     var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>());
     mailer.SendNotice(Settings.Current.TestEmailAddress, new ErrorNotificationModel {
         BaseUrl = "http://app.exceptionless.com",
         Code = "500",
         ErrorId = "1",
         ErrorStackId = "1",
         FullTypeName = "SomeError",
         IsCritical = true,
         IsNew = true,
         IsRegression = false,
         Message = "Happy days are here again...",
         ProjectId = "1",
         ProjectName = "Test",
         Subject = "An error has occurred.",
         TotalOccurrences = 1,
         Url = "http://app.exceptionless.com",
         UserAgent = "eric"
     });
 }
예제 #4
0
 public void SendSummaryNotification() {
     var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>());
     mailer.SendSummaryNotification(Settings.Current.TestEmailAddress, new SummaryNotificationModel {
         ProjectId = "1",
         BaseUrl = "http://app.exceptionless.com",
         MostFrequent = new List<ErrorStackResult> {
             new ErrorStackResult {
                 First = DateTime.Now,
                 Id = "1",
                 Last = DateTime.Now,
                 Is404 = false,
                 Method = "Blah()",
                 Path = "/blah",
                 Title = "Some Error",
                 Total = 12,
                 Type = "SomeError"
             }
         },
         New = new List<ErrorStack> {
             new ErrorStack {
                 DateFixed = DateTime.Now,
                 Description = "Error 1",
                 FirstOccurrence = DateTime.Now,
                 IsRegressed = true,
                 LastOccurrence = DateTime.Now,
                 TotalOccurrences = 12
             }
         },
         StartDate = DateTime.Now.Date,
         EndDate = DateTime.Now.ToEndOfDay(),
         NewTotal = 1,
         PerHourAverage = 0.4,
         ProjectName = "Blah",
         Subject = "A daily summary",
         Total = 12,
         UniqueTotal = 1,
         HasSubmittedErrors = true,
         IsFreePlan = false
     });
 }
예제 #5
0
 public void SendPasswordReset()
 {
     var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>());
     User user = UserData.GenerateSampleUser();
     mailer.SendPasswordReset(user);
 }
예제 #6
0
 public void SendVerifyEmail()
 {
     var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>());
     User user = UserData.GenerateSampleUser();
     mailer.SendVerifyEmail(user);
 }