C# Class ApprovalTests.Email.EmailApprovals

Mostra file Open project: approvals/ApprovalTests.Net

Public Methods

Method Description
CreateEmail ( MailMessage email ) : string
FindBoundaries ( string emailText ) : string[]
GetLatestFile ( string dir ) : string
ReadFileWhereLines ( string latestFile, bool>.Func predicate ) : string
Verify ( MailMessage email ) : void
VerifyScrubbed ( MailMessage email ) : void

Private Methods

Method Description
ScrubBoundaries ( string emailText ) : string
ScrubBoundaries ( string emailText, string boundies ) : string

Method Details

CreateEmail() public static method

public static CreateEmail ( MailMessage email ) : string
email System.Net.Mail.MailMessage
return string

FindBoundaries() public static method

public static FindBoundaries ( string emailText ) : string[]
emailText string
return string[]

GetLatestFile() public static method

public static GetLatestFile ( string dir ) : string
dir string
return string

ReadFileWhereLines() public static method

public static ReadFileWhereLines ( string latestFile, bool>.Func predicate ) : string
latestFile string
predicate bool>.Func
return string

Verify() public static method

public static Verify ( MailMessage email ) : void
email System.Net.Mail.MailMessage
return void

VerifyScrubbed() public static method

public static VerifyScrubbed ( MailMessage email ) : void
email System.Net.Mail.MailMessage
return void