C# Class UnitTest.IMAPSimulator

Summary description for IMAPSimulator.
ファイルを表示 Open project: nberardi/hMailServer Class Usage Examples

Public Methods

Method Description
AssertMessageCount ( string accountName, string accountPassword, string folderName, int expectedCount ) : void
AssertPendingDataExists ( ) : bool

Waits for data a total of 8 seconds.

CheckFolder ( string sFolder ) : bool
Close ( ) : bool
Connect ( ) : string
ConnectAndLogon ( string username, string password ) : bool
ConnectAndLogon ( string sUsername, string sPassword, string &errorMessage ) : bool
Copy ( int messageIndex, string destinationFolder ) : bool
CreateFolder ( string sFolder ) : bool
DeleteACL ( string sFolder, string identifier ) : bool
DeleteFolder ( string sFolder ) : bool
Disconnect ( ) : void
EndIdle ( bool force, string &output ) : bool
ExamineFolder ( string sFolder ) : string
Expunge ( ) : bool
Expunge ( string &result ) : bool
Fetch ( string sParameters ) : string
GetACL ( string sFolder ) : string
GetCapabilities ( ) : string
GetFlags ( int messageIndex ) : string
GetMessageCount ( string sFolder ) : int
GetMyRights ( string sFolder ) : string
GetPendingDataExists ( ) : bool
GetQuota ( string folderName ) : string
GetWelcomeMessage ( ) : string
IMAPSimulator ( ) : System
IMAPSimulator ( bool useSSL, int port ) : System
IMAPSimulator ( string username, string password, string mailbox ) : System
LSUB ( ) : string
LSUB ( string wildcard ) : string
LSUB ( string reference, string wildcard ) : string
List ( ) : string
List ( string wildcard ) : string
List ( string wildcard, bool unescapeResponse ) : string
List ( string reference, string wildcard, bool unescapeResponse ) : string
ListRights ( string sFolder, string identifier ) : string
Logon ( string sUsername, string sPassword ) : bool
Logon ( string sUsername, string sPassword, string &errorMessage ) : bool
LogonWithLiteral ( string sUsername, string sPassword ) : void
Logout ( ) : bool
NOOP ( ) : string
Receive ( ) : string
ReceiveUntil ( string characters ) : string
RenameFolder ( string from, string to ) : bool
RenameFolder ( string from, string to, string &result ) : bool
Search ( string sSearchString ) : string
SelectFolder ( string sFolder ) : bool
SelectFolder ( string folderName, string &text ) : bool
SelectFolderWithoutLiteral ( string sFolder ) : bool
Send ( string s ) : string
SendRaw ( string s ) : void
SendSingleCommand ( string command ) : string
SendSingleCommandWithLiteral ( string command, string literalData ) : string
SetACL ( string sFolder, string identifier, string access ) : bool
SetDeletedFlag ( int messageIndex ) : bool
SetFlagOnFirstMessage ( bool bSet, string sFlag ) : void
SetFlagOnMessage ( int index, bool bSet, string sFlag ) : bool
SetSeenFlag ( int messageIndex ) : bool
Sort ( string sSearchString ) : string
StartIdle ( ) : bool
Status ( string folderName, string dataItem ) : string
Subscribe ( string sFolder ) : bool
TestConnect ( int iPort ) : bool
Unsubscribe ( string sFolder ) : bool

Private Methods

Method Description
AssertFolderExists ( string folderName ) : void

Method Details

AssertMessageCount() public static method

public static AssertMessageCount ( string accountName, string accountPassword, string folderName, int expectedCount ) : void
accountName string
accountPassword string
folderName string
expectedCount int
return void

AssertPendingDataExists() public method

Waits for data a total of 8 seconds.
public AssertPendingDataExists ( ) : bool
return bool

CheckFolder() public method

public CheckFolder ( string sFolder ) : bool
sFolder string
return bool

Close() public method

public Close ( ) : bool
return bool

Connect() public method

public Connect ( ) : string
return string

ConnectAndLogon() public method

public ConnectAndLogon ( string username, string password ) : bool
username string
password string
return bool

ConnectAndLogon() public method

public ConnectAndLogon ( string sUsername, string sPassword, string &errorMessage ) : bool
sUsername string
sPassword string
errorMessage string
return bool

Copy() public method

public Copy ( int messageIndex, string destinationFolder ) : bool
messageIndex int
destinationFolder string
return bool

CreateFolder() public method

public CreateFolder ( string sFolder ) : bool
sFolder string
return bool

DeleteACL() public method

public DeleteACL ( string sFolder, string identifier ) : bool
sFolder string
identifier string
return bool

DeleteFolder() public method

public DeleteFolder ( string sFolder ) : bool
sFolder string
return bool

Disconnect() public method

public Disconnect ( ) : void
return void

EndIdle() public method

public EndIdle ( bool force, string &output ) : bool
force bool
output string
return bool

ExamineFolder() public method

public ExamineFolder ( string sFolder ) : string
sFolder string
return string

Expunge() public method

public Expunge ( ) : bool
return bool

Expunge() public method

public Expunge ( string &result ) : bool
result string
return bool

Fetch() public method

public Fetch ( string sParameters ) : string
sParameters string
return string

GetACL() public method

public GetACL ( string sFolder ) : string
sFolder string
return string

GetCapabilities() public method

public GetCapabilities ( ) : string
return string

GetFlags() public method

public GetFlags ( int messageIndex ) : string
messageIndex int
return string

GetMessageCount() public method

public GetMessageCount ( string sFolder ) : int
sFolder string
return int

GetMyRights() public method

public GetMyRights ( string sFolder ) : string
sFolder string
return string

GetPendingDataExists() public method

public GetPendingDataExists ( ) : bool
return bool

GetQuota() public method

public GetQuota ( string folderName ) : string
folderName string
return string

GetWelcomeMessage() public method

public GetWelcomeMessage ( ) : string
return string

IMAPSimulator() public method

public IMAPSimulator ( ) : System
return System

IMAPSimulator() public method

public IMAPSimulator ( bool useSSL, int port ) : System
useSSL bool
port int
return System

IMAPSimulator() public method

public IMAPSimulator ( string username, string password, string mailbox ) : System
username string
password string
mailbox string
return System

LSUB() public method

public LSUB ( ) : string
return string

LSUB() public method

public LSUB ( string wildcard ) : string
wildcard string
return string

LSUB() public method

public LSUB ( string reference, string wildcard ) : string
reference string
wildcard string
return string

List() public method

public List ( ) : string
return string

List() public method

public List ( string wildcard ) : string
wildcard string
return string

List() public method

public List ( string wildcard, bool unescapeResponse ) : string
wildcard string
unescapeResponse bool
return string

List() public method

public List ( string reference, string wildcard, bool unescapeResponse ) : string
reference string
wildcard string
unescapeResponse bool
return string

ListRights() public method

public ListRights ( string sFolder, string identifier ) : string
sFolder string
identifier string
return string

Logon() public method

public Logon ( string sUsername, string sPassword ) : bool
sUsername string
sPassword string
return bool

Logon() public method

public Logon ( string sUsername, string sPassword, string &errorMessage ) : bool
sUsername string
sPassword string
errorMessage string
return bool

LogonWithLiteral() public method

public LogonWithLiteral ( string sUsername, string sPassword ) : void
sUsername string
sPassword string
return void

Logout() public method

public Logout ( ) : bool
return bool

NOOP() public method

public NOOP ( ) : string
return string

Receive() public method

public Receive ( ) : string
return string

ReceiveUntil() public method

public ReceiveUntil ( string characters ) : string
characters string
return string

RenameFolder() public method

public RenameFolder ( string from, string to ) : bool
from string
to string
return bool

RenameFolder() public method

public RenameFolder ( string from, string to, string &result ) : bool
from string
to string
result string
return bool

Search() public method

public Search ( string sSearchString ) : string
sSearchString string
return string

SelectFolder() public method

public SelectFolder ( string sFolder ) : bool
sFolder string
return bool

SelectFolder() public method

public SelectFolder ( string folderName, string &text ) : bool
folderName string
text string
return bool

SelectFolderWithoutLiteral() public method

public SelectFolderWithoutLiteral ( string sFolder ) : bool
sFolder string
return bool

Send() public method

public Send ( string s ) : string
s string
return string

SendRaw() public method

public SendRaw ( string s ) : void
s string
return void

SendSingleCommand() public method

public SendSingleCommand ( string command ) : string
command string
return string

SendSingleCommandWithLiteral() public method

public SendSingleCommandWithLiteral ( string command, string literalData ) : string
command string
literalData string
return string

SetACL() public method

public SetACL ( string sFolder, string identifier, string access ) : bool
sFolder string
identifier string
access string
return bool

SetDeletedFlag() public method

public SetDeletedFlag ( int messageIndex ) : bool
messageIndex int
return bool

SetFlagOnFirstMessage() public method

public SetFlagOnFirstMessage ( bool bSet, string sFlag ) : void
bSet bool
sFlag string
return void

SetFlagOnMessage() public method

public SetFlagOnMessage ( int index, bool bSet, string sFlag ) : bool
index int
bSet bool
sFlag string
return bool

SetSeenFlag() public method

public SetSeenFlag ( int messageIndex ) : bool
messageIndex int
return bool

Sort() public method

public Sort ( string sSearchString ) : string
sSearchString string
return string

StartIdle() public method

public StartIdle ( ) : bool
return bool

Status() public method

public Status ( string folderName, string dataItem ) : string
folderName string
dataItem string
return string

Subscribe() public method

public Subscribe ( string sFolder ) : bool
sFolder string
return bool

TestConnect() public method

public TestConnect ( int iPort ) : bool
iPort int
return bool

Unsubscribe() public method

public Unsubscribe ( string sFolder ) : bool
sFolder string
return bool