C# 클래스 Microsoft.Protocols.TestSuites.MS_OXORULE.TestSuiteBase

상속: Microsoft.Protocols.TestTools.TestClassBase
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites

공개 메소드들

메소드 설명
DeliverMessageToTriggerRule ( string mailTo, string mailToUserDN, string subject, TaggedPropertyValue addedProperties ) : uint

Submit a message to the server

GetStoreObjectEntryID ( StoreObjectType storeObjectType, string serverShortName, string mailboxDN ) : byte[]

Get store object EntryID bytes array.

LogonMailbox ( TestUser testUser ) : void

Log on mailbox with specified user.

보호된 메소드들

메소드 설명
CheckMAPIHTTPTransportSupported ( ) : void

Disable the test case if MAPIHTTP transport is selected but not supported by current test environment.

CheckUnexpectedMessageExist ( uint folderHandle, uint &contentsTableHandle, PropertyTag propertyTagList, string unexpectedPropertyValue, PropertyId propertyName = PropertyId.PidTagSubject ) : bool

Check if an unexpected message with a specific property value exists in the target mailbox.

ClearAllRules ( ) : void

Clear all rules of the inbox folder.

GetExpectedMessage ( uint folderHandle, uint &contentsTableHandle, PropertyTag propertyTagList, int &expectedMessageIndex, string expectedPropertyValue, PropertyId expectedPropertyName = PropertyId.PidTagSubject ) : RopQueryRowsResponse

Get the expected message properties included in a specific contents table after retry preconfigured times.

GetExpectedMessage ( uint folderHandle, uint &contentsTableHandle, PropertyTag propertyTagList, uint &rowCount, int expectedMessageCount = 1, string expectedTitle = null ) : RopQueryRowsResponse

Get the expected message properties included in a specific contents table and the message count in the table after retry preconfigured times.

GetNotifyResponse ( ) : RopNotifyResponse

Get the Notify response after retry preconfigured times.

TestCleanup ( ) : void

Overrides TestClassBase's TestCleanup()

TestInitialize ( ) : void

Overrides TestClassBase's TestInitialize()

VerifyRuleTable ( ) : void

Verify rule table.

비공개 메소드들

메소드 설명
CheckIfTestCaseDisabled ( ) : bool

Check if a specific test case is disabled.

메소드 상세

CheckMAPIHTTPTransportSupported() 보호된 메소드

Disable the test case if MAPIHTTP transport is selected but not supported by current test environment.
protected CheckMAPIHTTPTransportSupported ( ) : void
리턴 void

CheckUnexpectedMessageExist() 보호된 메소드

Check if an unexpected message with a specific property value exists in the target mailbox.
protected CheckUnexpectedMessageExist ( uint folderHandle, uint &contentsTableHandle, PropertyTag propertyTagList, string unexpectedPropertyValue, PropertyId propertyName = PropertyId.PidTagSubject ) : bool
folderHandle uint Handle of a specific folder.
contentsTableHandle uint Handle of a specific contents table.
propertyTagList Microsoft.Protocols.TestSuites.Common.PropertyTag >Array of PropertyTag structures. This field specifies the property values that are visible in table rows.
unexpectedPropertyValue string The value of a specific property of the message to be checked in the target mailbox.
propertyName Microsoft.Protocols.TestSuites.Common.PropertyId The property name of a specific property of the message to be checked in the target mailbox, which type should be string. The default property name is PidTagSubject.
리턴 bool

ClearAllRules() 보호된 메소드

Clear all rules of the inbox folder.
protected ClearAllRules ( ) : void
리턴 void

DeliverMessageToTriggerRule() 공개 메소드

Submit a message to the server
public DeliverMessageToTriggerRule ( string mailTo, string mailToUserDN, string subject, TaggedPropertyValue addedProperties ) : uint
mailTo string The user name of the recipient
mailToUserDN string The userDN of the recipient
subject string The subject of the mail
addedProperties Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue The added properties of the mail
리턴 uint

GetExpectedMessage() 보호된 메소드

Get the expected message properties included in a specific contents table after retry preconfigured times.
protected GetExpectedMessage ( uint folderHandle, uint &contentsTableHandle, PropertyTag propertyTagList, int &expectedMessageIndex, string expectedPropertyValue, PropertyId expectedPropertyName = PropertyId.PidTagSubject ) : RopQueryRowsResponse
folderHandle uint Handle of a specific folder.
contentsTableHandle uint Handle of a specific contents table.
propertyTagList Microsoft.Protocols.TestSuites.Common.PropertyTag >Array of PropertyTag structures. This field specifies the property values that are visible in table rows.
expectedMessageIndex int The index of the specific message in the table.
expectedPropertyValue string The value of a specific property of the message to be found in the target mailbox.
expectedPropertyName Microsoft.Protocols.TestSuites.Common.PropertyId The property name of a specific property of the message to be found in the target mailbox, which type should be string. The default property name is PidTagSubject.
리턴 Microsoft.Protocols.TestSuites.Common.RopQueryRowsResponse

GetExpectedMessage() 보호된 메소드

Get the expected message properties included in a specific contents table and the message count in the table after retry preconfigured times.
protected GetExpectedMessage ( uint folderHandle, uint &contentsTableHandle, PropertyTag propertyTagList, uint &rowCount, int expectedMessageCount = 1, string expectedTitle = null ) : RopQueryRowsResponse
folderHandle uint Handle of a specific folder.
contentsTableHandle uint Handle of a specific contents table.
propertyTagList Microsoft.Protocols.TestSuites.Common.PropertyTag >Array of PropertyTag structures. This field specifies the property values that are visible in table rows.
rowCount uint The row count in the specific contents table, in which each row specifies a message.
expectedMessageCount int Specify the expected number of messages in target mailbox. The default value is 1.
expectedTitle string The default value is null. If the value is not null, the message with specified title must exist in target mailbox. If the expected message exists, the rowCount represents the index of the message in the target mailbox.
리턴 Microsoft.Protocols.TestSuites.Common.RopQueryRowsResponse

GetNotifyResponse() 보호된 메소드

Get the Notify response after retry preconfigured times.
protected GetNotifyResponse ( ) : RopNotifyResponse
리턴 RopNotifyResponse

GetStoreObjectEntryID() 공개 메소드

Get store object EntryID bytes array.
public GetStoreObjectEntryID ( StoreObjectType storeObjectType, string serverShortName, string mailboxDN ) : byte[]
storeObjectType StoreObjectType Identify the store object is a mailbox or a public folder.
serverShortName string Server short name string.
mailboxDN string Mailbox DN string.
리턴 byte[]

LogonMailbox() 공개 메소드

Log on mailbox with specified user.
public LogonMailbox ( TestUser testUser ) : void
testUser TestUser Identify the user to log on to the server.
리턴 void

TestCleanup() 보호된 메소드

Overrides TestClassBase's TestCleanup()
protected TestCleanup ( ) : void
리턴 void

TestInitialize() 보호된 메소드

Overrides TestClassBase's TestInitialize()
protected TestInitialize ( ) : void
리턴 void

VerifyRuleTable() 보호된 메소드

Verify rule table.
protected VerifyRuleTable ( ) : void
리턴 void