C# Класс UnitTest.POP3Simulator

Summary description for POP3Simulator.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AssertGetFirstMessageText ( string accountName, string accountPassword ) : string
AssertMessageCount ( string accountName, string accountPassword, int expectedCount ) : void
Connect ( int iPort ) : bool
ConnectAndLogon ( string username, string password ) : bool
ConnectAndLogon ( string username, string password, string &errorMessage ) : bool
DELE ( int index ) : bool
Disconnect ( ) : void
GetFirstMessageText ( string sUsername, string sPassword ) : string
GetMessageCount ( string sUsername, string sPassword ) : int
GetWelcomeMessage ( ) : string
LIST ( ) : string
LIST ( int index ) : string
POP3Simulator ( ) : System
POP3Simulator ( IPAddress ipaddress, bool useSSL, int port ) : System
POP3Simulator ( bool useSSL, int port ) : System
QUIT ( ) : void
RETR ( int index ) : string
TOP ( int index, int rows ) : string
TestConnect ( int iPort ) : bool
UIDL ( ) : string
UIDL ( int index ) : string

Описание методов

AssertGetFirstMessageText() публичный статический Метод

public static AssertGetFirstMessageText ( string accountName, string accountPassword ) : string
accountName string
accountPassword string
Результат string

AssertMessageCount() публичный статический Метод

public static AssertMessageCount ( string accountName, string accountPassword, int expectedCount ) : void
accountName string
accountPassword string
expectedCount int
Результат void

Connect() публичный Метод

public Connect ( int iPort ) : bool
iPort int
Результат bool

ConnectAndLogon() публичный Метод

public ConnectAndLogon ( string username, string password ) : bool
username string
password string
Результат bool

ConnectAndLogon() публичный Метод

public ConnectAndLogon ( string username, string password, string &errorMessage ) : bool
username string
password string
errorMessage string
Результат bool

DELE() публичный Метод

public DELE ( int index ) : bool
index int
Результат bool

Disconnect() публичный Метод

public Disconnect ( ) : void
Результат void

GetFirstMessageText() публичный Метод

public GetFirstMessageText ( string sUsername, string sPassword ) : string
sUsername string
sPassword string
Результат string

GetMessageCount() публичный Метод

public GetMessageCount ( string sUsername, string sPassword ) : int
sUsername string
sPassword string
Результат int

GetWelcomeMessage() публичный Метод

public GetWelcomeMessage ( ) : string
Результат string

LIST() публичный Метод

public LIST ( ) : string
Результат string

LIST() публичный Метод

public LIST ( int index ) : string
index int
Результат string

POP3Simulator() публичный Метод

public POP3Simulator ( ) : System
Результат System

POP3Simulator() публичный Метод

public POP3Simulator ( IPAddress ipaddress, bool useSSL, int port ) : System
ipaddress System.Net.IPAddress
useSSL bool
port int
Результат System

POP3Simulator() публичный Метод

public POP3Simulator ( bool useSSL, int port ) : System
useSSL bool
port int
Результат System

QUIT() публичный Метод

public QUIT ( ) : void
Результат void

RETR() публичный Метод

public RETR ( int index ) : string
index int
Результат string

TOP() публичный Метод

public TOP ( int index, int rows ) : string
index int
rows int
Результат string

TestConnect() публичный Метод

public TestConnect ( int iPort ) : bool
iPort int
Результат bool

UIDL() публичный Метод

public UIDL ( ) : string
Результат string

UIDL() публичный Метод

public UIDL ( int index ) : string
index int
Результат string