public void SendAddedToOrganization() { var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>()); User user = UserData.GenerateSampleUser(); Organization organization = OrganizationData.GenerateSampleOrganization(); mailer.SendAddedToOrganization(user, organization, user); }
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" }); }
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" }); }
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 }); }
public void SendPasswordReset() { var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>()); User user = UserData.GenerateSampleUser(); mailer.SendPasswordReset(user); }
public void SendVerifyEmail() { var mailer = new Mailer(IoC.GetInstance<IEmailGenerator>()); User user = UserData.GenerateSampleUser(); mailer.SendVerifyEmail(user); }