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

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

보호된 프로퍼티들

프로퍼티 타입 설명
cropsAdapter IMS_OXCROPSAdapter
inputObjHandle uint
propertyDictionary PropertyTag>.Dictionary
rawData byte[]
response IDeserializable
responseSOHs List>
userDN string

보호된 메소드들

메소드 설명
CheckTransportIsSupported ( ) : void

Check the preconditions of this test suite.

CommitStream ( uint streamHandle ) : void

Commit Stream

CreateSampleContentsTablePropertyTags ( ) : Microsoft.Protocols.TestSuites.Common.PropertyTag[]

Create Sample ContentsTable PropertyTags

CreateSampleRecipientColumnsAndRecipientRows ( PropertyTag &recipientColumns, ModifyRecipientRow &recipientRows ) : void

This method creates Sample RecipientColumns and Sample RecipientRows.

CreateSingleProcessEachLoop ( RopLogonResponse &logonResponse, uint &tableHandle, int count, RopCreateMessageRequest createMessageRequest, RopSaveChangesMessageRequest saveChangesMessageRequest, RopReleaseRequest releaseRequest ) : void

Create message each one loop In InBox

CreateVastMessages ( RopLogonResponse &logonResponse, uint &tableHandle, int count, RopCreateMessageRequest createMessageRequest, RopSaveChangesMessageRequest saveChangesMessageRequest, RopReleaseRequest releaseRequest ) : void

Create Vast Messages In InBox

GetContentsTableHandle ( uint targetFolderHandle ) : uint

Get ContentsTable Handle

GetCreatedMessageHandle ( ulong folderId, uint logonHandle ) : uint

Get Created Message Handle

GetFolderObjectHandle ( RopLogonResponse &logonResponse ) : uint

Get Folder Object Handle.

GetStatePropertyByIds ( ushort propertyId, ushort propertyTypeId ) : uint

Initialize StateProperty from property id and property type id.

GetSubfolderIDByName ( uint openedFolderHandle, string folderName ) : ulong

Find a folder ID in the specified folder and with specified display name.

HardDeleteMessagesAndSubfolders ( string userName, string passWord, string userEssdn, int folderIndex, bool needWaitMail = false ) : void

Hard delete messages and subfolders under the specified folder.

Logon ( LogonType logonType, string userDN, uint &objHandle ) : RopLogonResponse

This method is used to log on to a private mailbox or public folder and will be called before other ROPs

PrepareRops ( RopLogonResponse logonResponse, RopCreateMessageRequest &createMessageRequest, RopSaveChangesMessageRequest &saveChangesMessageRequest, RopReleaseRequest &releaseRequest ) : void

Prepare the ROP request for RopCreateMessage, RopSaveChangesMessage and RopRelease.

SaveMessage ( uint messageHandle ) : void

Save Message

TestCleanup ( ) : void

Test cleanup.

TestInitialize ( ) : void

Test initialize.

비공개 메소드들

메소드 설명
GetTableRowValue ( uint tableHandle, ushort rowCount, PropertyTag properties ) : List

Get the properties' value from the rows of the table.

InitDictionary ( PropertyNames propertyName, ushort propertyId, PropertyType propertyType, PropertyTag>.Dictionary &propertyTagDictionary ) : void

Initialize the properties into the dictionary.

PropertyDictionary ( ) : PropertyTag>.Dictionary

Add all property to dictionary for lookup.

메소드 상세

CheckTransportIsSupported() 보호된 메소드

Check the preconditions of this test suite.
protected CheckTransportIsSupported ( ) : void
리턴 void

CommitStream() 보호된 메소드

Commit Stream
protected CommitStream ( uint streamHandle ) : void
streamHandle uint The opened stream handle
리턴 void

CreateSampleContentsTablePropertyTags() 보호된 메소드

Create Sample ContentsTable PropertyTags
protected CreateSampleContentsTablePropertyTags ( ) : Microsoft.Protocols.TestSuites.Common.PropertyTag[]
리턴 Microsoft.Protocols.TestSuites.Common.PropertyTag[]

CreateSampleRecipientColumnsAndRecipientRows() 보호된 메소드

This method creates Sample RecipientColumns and Sample RecipientRows.
protected CreateSampleRecipientColumnsAndRecipientRows ( PropertyTag &recipientColumns, ModifyRecipientRow &recipientRows ) : void
recipientColumns Microsoft.Protocols.TestSuites.Common.PropertyTag Sample RecipientColumns
recipientRows ModifyRecipientRow Sample RecipientRows
리턴 void

CreateSingleProcessEachLoop() 보호된 메소드

Create message each one loop In InBox
protected CreateSingleProcessEachLoop ( RopLogonResponse &logonResponse, uint &tableHandle, int count, RopCreateMessageRequest createMessageRequest, RopSaveChangesMessageRequest saveChangesMessageRequest, RopReleaseRequest releaseRequest ) : void
logonResponse Microsoft.Protocols.TestSuites.Common.RopLogonResponse the logon response be used to create message
tableHandle uint The tableHanlder of the new folder
count int The count of created messages
createMessageRequest Microsoft.Protocols.TestSuites.Common.RopCreateMessageRequest The ROP CreateMessageRequest
saveChangesMessageRequest Microsoft.Protocols.TestSuites.Common.RopSaveChangesMessageRequest The ROP SaveChangesMessageRequest
releaseRequest Microsoft.Protocols.TestSuites.Common.RopReleaseRequest The ROP ReleaseRequest
리턴 void

CreateVastMessages() 보호된 메소드

Create Vast Messages In InBox
protected CreateVastMessages ( RopLogonResponse &logonResponse, uint &tableHandle, int count, RopCreateMessageRequest createMessageRequest, RopSaveChangesMessageRequest saveChangesMessageRequest, RopReleaseRequest releaseRequest ) : void
logonResponse Microsoft.Protocols.TestSuites.Common.RopLogonResponse the logon response be used to create message
tableHandle uint The tableHanlder of the new folder
count int The count of created messages
createMessageRequest Microsoft.Protocols.TestSuites.Common.RopCreateMessageRequest The ROP CreateMessageRequest
saveChangesMessageRequest Microsoft.Protocols.TestSuites.Common.RopSaveChangesMessageRequest The ROP SaveChangesMessageRequest
releaseRequest Microsoft.Protocols.TestSuites.Common.RopReleaseRequest The ROP ReleaseRequest
리턴 void

GetContentsTableHandle() 보호된 메소드

Get ContentsTable Handle
protected GetContentsTableHandle ( uint targetFolderHandle ) : uint
targetFolderHandle uint The target folder object handle
리턴 uint

GetCreatedMessageHandle() 보호된 메소드

Get Created Message Handle
protected GetCreatedMessageHandle ( ulong folderId, uint logonHandle ) : uint
folderId ulong The folder Id be used to create message
logonHandle uint The RopLogon object handle
리턴 uint

GetFolderObjectHandle() 보호된 메소드

Get Folder Object Handle.
protected GetFolderObjectHandle ( RopLogonResponse &logonResponse ) : uint
logonResponse Microsoft.Protocols.TestSuites.Common.RopLogonResponse The response of RopLogon
리턴 uint

GetStatePropertyByIds() 보호된 메소드

Initialize StateProperty from property id and property type id.
protected GetStatePropertyByIds ( ushort propertyId, ushort propertyTypeId ) : uint
propertyId ushort Property id
propertyTypeId ushort Property type id
리턴 uint

GetSubfolderIDByName() 보호된 메소드

Find a folder ID in the specified folder and with specified display name.
protected GetSubfolderIDByName ( uint openedFolderHandle, string folderName ) : ulong
openedFolderHandle uint Handle of the parent folder.
folderName string The folder display name.
리턴 ulong

HardDeleteMessagesAndSubfolders() 보호된 메소드

Hard delete messages and subfolders under the specified folder.
protected HardDeleteMessagesAndSubfolders ( string userName, string passWord, string userEssdn, int folderIndex, bool needWaitMail = false ) : void
userName string The user name to be used to logon a specific mailbox
passWord string The user password to be used to logon a specific mailbox
userEssdn string The user Essdn to be used to logon a specific mailbox
folderIndex int The id of folder in which subfolders and messages should be deleted
needWaitMail bool Indicates whether need waiting the mail to be received. True means need waiting, otherwise not.
리턴 void

Logon() 보호된 메소드

This method is used to log on to a private mailbox or public folder and will be called before other ROPs
protected Logon ( LogonType logonType, string userDN, uint &objHandle ) : RopLogonResponse
logonType LogonType The logon type.
userDN string The user Essdn to be used to logon a specific mailbox
objHandle uint The Object handle.
리턴 Microsoft.Protocols.TestSuites.Common.RopLogonResponse

PrepareRops() 보호된 메소드

Prepare the ROP request for RopCreateMessage, RopSaveChangesMessage and RopRelease.
protected PrepareRops ( RopLogonResponse logonResponse, RopCreateMessageRequest &createMessageRequest, RopSaveChangesMessageRequest &saveChangesMessageRequest, RopReleaseRequest &releaseRequest ) : void
logonResponse Microsoft.Protocols.TestSuites.Common.RopLogonResponse The response of RopLogon.
createMessageRequest Microsoft.Protocols.TestSuites.Common.RopCreateMessageRequest The request of RopCreateMessage.
saveChangesMessageRequest Microsoft.Protocols.TestSuites.Common.RopSaveChangesMessageRequest The request of RopSaveChangesMessage.
releaseRequest Microsoft.Protocols.TestSuites.Common.RopReleaseRequest The request of RopRelease.
리턴 void

SaveMessage() 보호된 메소드

Save Message
protected SaveMessage ( uint messageHandle ) : void
messageHandle uint The message handle
리턴 void

TestCleanup() 보호된 메소드

Test cleanup.
protected TestCleanup ( ) : void
리턴 void

TestInitialize() 보호된 메소드

Test initialize.
protected TestInitialize ( ) : void
리턴 void

프로퍼티 상세

cropsAdapter 보호되어 있는 프로퍼티

Adapter object.
protected IMS_OXCROPSAdapter cropsAdapter
리턴 IMS_OXCROPSAdapter

inputObjHandle 보호되어 있는 프로퍼티

Server object handle in request.
protected uint inputObjHandle
리턴 uint

propertyDictionary 보호되어 있는 프로퍼티

The dictionary holds the PropertyTags
protected Dictionary propertyDictionary
리턴 PropertyTag>.Dictionary

rawData 보호되어 있는 프로퍼티

The ROP response payload.
protected byte[] rawData
리턴 byte[]

response 보호되어 있는 프로퍼티

ROP response objects.
protected IDeserializable response
리턴 IDeserializable

responseSOHs 보호되어 있는 프로퍼티

Server objects handles in response.
protected List> responseSOHs
리턴 List>

userDN 보호되어 있는 프로퍼티

This property is used to Logon a specific mailbox.
protected string userDN
리턴 string