C# Class CapRaffle.Domain.Implementation.EmailSender

Inheritance: IEmailSender
Datei anzeigen Open project: capgemini-stavanger/CapRaffle Class Usage Examples

Public Methods

Method Description
EmailSender ( ) : System
ForgotPassword ( string email, string newPassword ) : bool
NotifyCreator ( Event selectedEvent ) : bool
NotifyLooser ( UserEvent looser ) : bool
NotifyWinner ( Winner winner ) : bool

Private Methods

Method Description
GenerateCalendarEvent ( Event winnerEvent ) : string
GetWinnerTable ( IEnumerable winners ) : string
SendEmail ( MailMessage mailMessage ) : bool
SetUpSmtpClient ( ) : void
ToCalendarDateString ( System.DateTime dateTime ) : string

Method Details

EmailSender() public method

public EmailSender ( ) : System
return System

ForgotPassword() public method

public ForgotPassword ( string email, string newPassword ) : bool
email string
newPassword string
return bool

NotifyCreator() public method

public NotifyCreator ( Event selectedEvent ) : bool
selectedEvent CapRaffle.Domain.Model.Event
return bool

NotifyLooser() public method

public NotifyLooser ( UserEvent looser ) : bool
looser CapRaffle.Domain.Model.UserEvent
return bool

NotifyWinner() public method

public NotifyWinner ( Winner winner ) : bool
winner CapRaffle.Domain.Model.Winner
return bool