C# 클래스 UnitTest.Utilities

파일 보기 프로젝트 열기: nberardi/hMailServer

공개 메소드들

메소드 설명
AddAccount ( hMailServer oDomain, string sAddress, string sPassword ) : hMailServer.Account
AddAccount ( hMailServer oDomain, string sAddress, string sPassword, int maxSize ) : hMailServer.Account
AddAlias ( hMailServer domain, string sName, string sValue ) : hMailServer.Alias
AddCorporateRule ( hMailServer oAccount ) : void
AddDistributionList ( hMailServer oDomain, string sAddress, List recipients ) : hMailServer.DistributionList
AddDomain ( hMailServer oDomains, string sName ) : hMailServer.Domain
AddDomain ( string name ) : hMailServer.Domain
AddExactMatchRule ( hMailServer oAccount ) : void
AddGroup ( string sName ) : hMailServer.Group
AddGroupMember ( hMailServer group, hMailServer account ) : hMailServer.GroupMember
AddSpamRule ( hMailServer oAccount ) : void
AddTestDomain ( ) : hMailServer.Domain
AssertBounceMessageExistsInQueue ( string bounceTo ) : void
AssertClamDRunning ( ) : void
AssertDeleteFile ( string file ) : void
AssertFileExists ( string file, bool delete ) : void
AssertFilesInDirectory ( string directory, int expectedFileCount ) : void
AssertFilesInUserDirectory ( hMailServer account, int expectedFileCount ) : void
AssertFolderExists ( hMailServer folders, string folderName ) : hMailServer.IMAPFolder
AssertLiveLogContents ( ) : string
AssertMessageExistsInFolder ( hMailServer folder, int expectedCount ) : void
AssertRecipientsInDeliveryQueue ( int count ) : void
AssertRecipientsInDeliveryQueue ( int count, bool forceSend ) : void
AssertReportedError ( ) : void
AssertReportedError ( string content ) : void
AssertRetrieveFirstMessage ( hMailServer folder ) : hMailServer.Message
AssertSpamAssassinIsRunning ( ) : void
Authenticate ( ) : void
ClearDomains ( ) : void
CreateLargeDummyMailBody ( ) : string
DefaultLogContains ( string data ) : bool
DeleteCurrentDefaultLog ( ) : void
DeleteEventLog ( ) : void
DisableSpamProtection ( ) : void
DoBasicSetup ( ) : hMailServer.Domain
Escape ( string input ) : string
GetApp ( ) : hMailServer.Application
GetCurrentMIMEDateTime ( ) : string
GetDefaultLogFileName ( ) : string
GetErrorLogFileName ( ) : string
GetEventLogFileName ( ) : string
GetFileHash ( string fileName ) : string
GetPublicDirectory ( ) : string
GetResource ( string resourceName ) : string
GethMailServerCOMIPaddress ( ) : string
RandomString ( ) : string
ReadAndDeleteErrorLog ( ) : string
ReadCurrentDefaultLog ( ) : string
ReadExistingTextFile ( string fileName ) : string
RemoveAllRoutes ( ) : void
SendMessagesInQueue ( ) : void
Utilities ( ) : System
WriteFile ( string file, string contents ) : void

비공개 메소드들

메소드 설명
ClearGreyListingWhiteAddresses ( ) : void
DeleteMessagesInQueue ( ) : void
DisableVirusProtection ( ) : void
EnableLogging ( bool enable ) : void
GetLocalIPAddress ( ) : IPAddress
GetNumberOfMessagesInDeliveryQueue ( ) : int
RemoveAllGroups ( ) : void
RemoveAllRules ( ) : void
RemoveAllSharedFolders ( ) : void

메소드 상세

AddAccount() 공개 메소드

public AddAccount ( hMailServer oDomain, string sAddress, string sPassword ) : hMailServer.Account
oDomain hMailServer
sAddress string
sPassword string
리턴 hMailServer.Account

AddAccount() 공개 메소드

public AddAccount ( hMailServer oDomain, string sAddress, string sPassword, int maxSize ) : hMailServer.Account
oDomain hMailServer
sAddress string
sPassword string
maxSize int
리턴 hMailServer.Account

AddAlias() 공개 메소드

public AddAlias ( hMailServer domain, string sName, string sValue ) : hMailServer.Alias
domain hMailServer
sName string
sValue string
리턴 hMailServer.Alias

AddCorporateRule() 공개 메소드

public AddCorporateRule ( hMailServer oAccount ) : void
oAccount hMailServer
리턴 void

AddDistributionList() 공개 메소드

public AddDistributionList ( hMailServer oDomain, string sAddress, List recipients ) : hMailServer.DistributionList
oDomain hMailServer
sAddress string
recipients List
리턴 hMailServer.DistributionList

AddDomain() 공개 메소드

public AddDomain ( hMailServer oDomains, string sName ) : hMailServer.Domain
oDomains hMailServer
sName string
리턴 hMailServer.Domain

AddDomain() 공개 메소드

public AddDomain ( string name ) : hMailServer.Domain
name string
리턴 hMailServer.Domain

AddExactMatchRule() 공개 메소드

public AddExactMatchRule ( hMailServer oAccount ) : void
oAccount hMailServer
리턴 void

AddGroup() 공개 메소드

public AddGroup ( string sName ) : hMailServer.Group
sName string
리턴 hMailServer.Group

AddGroupMember() 공개 메소드

public AddGroupMember ( hMailServer group, hMailServer account ) : hMailServer.GroupMember
group hMailServer
account hMailServer
리턴 hMailServer.GroupMember

AddSpamRule() 공개 메소드

public AddSpamRule ( hMailServer oAccount ) : void
oAccount hMailServer
리턴 void

AddTestDomain() 공개 메소드

public AddTestDomain ( ) : hMailServer.Domain
리턴 hMailServer.Domain

AssertBounceMessageExistsInQueue() 공개 메소드

public AssertBounceMessageExistsInQueue ( string bounceTo ) : void
bounceTo string
리턴 void

AssertClamDRunning() 공개 정적인 메소드

public static AssertClamDRunning ( ) : void
리턴 void

AssertDeleteFile() 공개 정적인 메소드

public static AssertDeleteFile ( string file ) : void
file string
리턴 void

AssertFileExists() 공개 정적인 메소드

public static AssertFileExists ( string file, bool delete ) : void
file string
delete bool
리턴 void

AssertFilesInDirectory() 공개 메소드

public AssertFilesInDirectory ( string directory, int expectedFileCount ) : void
directory string
expectedFileCount int
리턴 void

AssertFilesInUserDirectory() 공개 메소드

public AssertFilesInUserDirectory ( hMailServer account, int expectedFileCount ) : void
account hMailServer
expectedFileCount int
리턴 void

AssertFolderExists() 공개 정적인 메소드

public static AssertFolderExists ( hMailServer folders, string folderName ) : hMailServer.IMAPFolder
folders hMailServer
folderName string
리턴 hMailServer.IMAPFolder

AssertLiveLogContents() 공개 메소드

public AssertLiveLogContents ( ) : string
리턴 string

AssertMessageExistsInFolder() 공개 정적인 메소드

public static AssertMessageExistsInFolder ( hMailServer folder, int expectedCount ) : void
folder hMailServer
expectedCount int
리턴 void

AssertRecipientsInDeliveryQueue() 공개 정적인 메소드

public static AssertRecipientsInDeliveryQueue ( int count ) : void
count int
리턴 void

AssertRecipientsInDeliveryQueue() 공개 정적인 메소드

public static AssertRecipientsInDeliveryQueue ( int count, bool forceSend ) : void
count int
forceSend bool
리턴 void

AssertReportedError() 공개 정적인 메소드

public static AssertReportedError ( ) : void
리턴 void

AssertReportedError() 공개 정적인 메소드

public static AssertReportedError ( string content ) : void
content string
리턴 void

AssertRetrieveFirstMessage() 공개 정적인 메소드

public static AssertRetrieveFirstMessage ( hMailServer folder ) : hMailServer.Message
folder hMailServer
리턴 hMailServer.Message

AssertSpamAssassinIsRunning() 공개 정적인 메소드

public static AssertSpamAssassinIsRunning ( ) : void
리턴 void

Authenticate() 공개 메소드

public Authenticate ( ) : void
리턴 void

ClearDomains() 공개 메소드

public ClearDomains ( ) : void
리턴 void

CreateLargeDummyMailBody() 공개 정적인 메소드

public static CreateLargeDummyMailBody ( ) : string
리턴 string

DefaultLogContains() 공개 정적인 메소드

public static DefaultLogContains ( string data ) : bool
data string
리턴 bool

DeleteCurrentDefaultLog() 공개 정적인 메소드

public static DeleteCurrentDefaultLog ( ) : void
리턴 void

DeleteEventLog() 공개 메소드

public DeleteEventLog ( ) : void
리턴 void

DisableSpamProtection() 공개 메소드

public DisableSpamProtection ( ) : void
리턴 void

DoBasicSetup() 공개 메소드

public DoBasicSetup ( ) : hMailServer.Domain
리턴 hMailServer.Domain

Escape() 공개 정적인 메소드

public static Escape ( string input ) : string
input string
리턴 string

GetApp() 공개 메소드

public GetApp ( ) : hMailServer.Application
리턴 hMailServer.Application

GetCurrentMIMEDateTime() 공개 정적인 메소드

public static GetCurrentMIMEDateTime ( ) : string
리턴 string

GetDefaultLogFileName() 공개 정적인 메소드

public static GetDefaultLogFileName ( ) : string
리턴 string

GetErrorLogFileName() 공개 정적인 메소드

public static GetErrorLogFileName ( ) : string
리턴 string

GetEventLogFileName() 공개 정적인 메소드

public static GetEventLogFileName ( ) : string
리턴 string

GetFileHash() 공개 정적인 메소드

public static GetFileHash ( string fileName ) : string
fileName string
리턴 string

GetPublicDirectory() 공개 메소드

public GetPublicDirectory ( ) : string
리턴 string

GetResource() 공개 정적인 메소드

public static GetResource ( string resourceName ) : string
resourceName string
리턴 string

GethMailServerCOMIPaddress() 공개 정적인 메소드

public static GethMailServerCOMIPaddress ( ) : string
리턴 string

RandomString() 공개 정적인 메소드

public static RandomString ( ) : string
리턴 string

ReadAndDeleteErrorLog() 공개 정적인 메소드

public static ReadAndDeleteErrorLog ( ) : string
리턴 string

ReadCurrentDefaultLog() 공개 정적인 메소드

public static ReadCurrentDefaultLog ( ) : string
리턴 string

ReadExistingTextFile() 공개 정적인 메소드

public static ReadExistingTextFile ( string fileName ) : string
fileName string
리턴 string

RemoveAllRoutes() 공개 메소드

public RemoveAllRoutes ( ) : void
리턴 void

SendMessagesInQueue() 공개 정적인 메소드

public static SendMessagesInQueue ( ) : void
리턴 void

Utilities() 공개 메소드

public Utilities ( ) : System
리턴 System

WriteFile() 공개 정적인 메소드

public static WriteFile ( string file, string contents ) : void
file string
contents string
리턴 void