C# Класс Microsoft.Protocols.TestSuites.MS_OXCMSG.TestSuiteBase

Наследование: Microsoft.Protocols.TestTools.TestClassBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
insideObjHandle uint
isNotNeedCleanupPrivateMailbox bool
rawData byte[]
response object
retryCount int
waitTime int

Защищенные методы

Метод Описание
AddPermission ( string userEssdn, uint memberRights, uint folderHandle ) : void

Add a permission for a user to the permission list of the specified folder.

AddRecipients ( List recipientRows, uint messageHandle, PropertyTag propertyTag ) : void

Add recipients to specific message.

AddRecipients ( List recipientRows, uint messageHandle, PropertyTag propertyTag, RopModifyRecipientsResponse &modifyRecipientsResponse ) : void

Add recipients to specific message.

CheckMapiHttpIsSupported ( ) : void

Check whether support MS-OXCMAPIHTTP transport.

ConnectToServer ( ConnectionType connectionType ) : void

Connect to the server for RPC calling.

CreateAttachment ( uint objectHandle, RopCreateAttachmentResponse &createAttachmentResponse, uint &attachmentId ) : uint

Create an attachment of the given message.

CreateMessageTaggedPropertyValueArrays ( int &size, PidTagAttachMethodFlags valueOfPidTagAttachMethodFlags ) : Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[]

Create an array of TaggedPropertyValue for message.

CreateModifyRecipientRow ( string name, uint rowId ) : ModifyRecipientRow

Create Recipient Array

CreateModifyRecipientRow ( string name, uint rowId, RecipientType recipientType ) : ModifyRecipientRow

Create Recipient Array

CreateRecipientColumns ( string name ) : PropertyRow

Create RecipientColumns

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

Create RecipientColumns

CreateSubFolder ( uint parentFolderHandle, ulong &subFolderId ) : uint

Create a subfolder under specified folder.

CreateSubFolder ( uint parentFolderHandle ) : ulong

Create a subfolder under specific folder.

CreatedMessage ( ulong folderId, uint logonHandle ) : uint

Get Created Message Handle

CreatedMessage ( ulong folderId, uint logonHandle, RopCreateMessageResponse &createMessageResponse ) : uint

Get Created Message Handle

GetContentTableSuccess ( uint objHandle ) : RopGetContentsTableResponse

Get the content table of specific folder.

GetLongTermIdFormID ( ulong objectId, uint logonHandle ) : LongTermId

Get the LongTermId form specified object ID.

GetObjectIdFormLongTermID ( LongTermId longTermID, uint logonHandle ) : ulong

Get the object ID form specified LongTermId.

GetSpecificPropertiesOfMessage ( ulong folderId, ulong messageId, uint objectHandle, List propertyList ) : List

Get value of specific properties in Message object.

GetSpecificPropertiesOfMessage ( uint messageHandle, List propertyList ) : RopGetPropertiesSpecificResponse

Get value of specific properties in Message object.

Logon ( LogonType logonType, uint &objHandle ) : RopLogonResponse

Call RopLogon to establish a logon session between the client and the server.

OpenSpecificFolder ( ulong folderId, uint logonHandle ) : uint

Get Opened Folder Handle

OpenSpecificMessage ( ulong folderId, ulong messageId, uint objectHandle, MessageOpenModeFlags openFlags ) : uint

Open a specific message.

OpenSpecificMessage ( ulong folderId, ulong messageId, uint objectHandle, MessageOpenModeFlags openFlags, RopOpenMessageResponse &openMessageResponse ) : uint

Open a specific message.

QueryRowsSuccess ( uint objHandle ) : RopQueryRowsResponse

Query the rows of specific table.

ReleaseRop ( uint handle ) : void

Release resources.

SaveAttachment ( uint objectHandle, RopSaveChangesAttachmentResponse &saveChangesAttachmentReponse ) : void

Save the attachment.

SaveMessage ( uint messagesHandle, byte saveFlags ) : RopSaveChangesMessageResponse

Save Message

SetColumnsSuccess ( PropertyTag propertyTags, uint objHandle ) : void

Set the specified columns that want to be returned.

SetPropertiesForMessage ( uint messageHandle, List pts ) : void

Set properties' value for a message

SetPropertiesForMessage ( uint messageHandle, List pts, RopSetPropertiesResponse &rpmSetResponse ) : void

Set properties' value for a message

TestCleanup ( ) : void

Test cleanup method

TestInitialize ( ) : void

Test initialization

WaitEmailBeDelivered ( string title, ulong folderId, uint logonHandle, ulong &messageId ) : bool

Wait email be delivered to Inbox folder.

WaitEmailBeDelivered ( uint objectHandle, uint messageCountBeforeDelivery ) : bool

Wait email be delivered to Inbox folder.

Приватные методы

Метод Описание
CleanFolder ( ulong folderID ) : void

Clean the Inbox folder in private mailbox.

CreateEntryIdProperty ( string userEssdn ) : TaggedPropertyValue

Generate the EntryId for modify the permissions.

CreateModifyPermissionsRequestBuffer ( PermissionData permissionsDataArray, ModifyFlags modifyFlags ) : RopModifyPermissionsRequest

Create buffer to get RopModifyPermissions request.

CreateRightsProperty ( uint nrights ) : TaggedPropertyValue

Create TaggedProperty by integer rights.

DetermineMessageExist ( string title, ulong folderId, uint logonHandle, ulong &messageID ) : bool

Determine the specified message whether has existed in specified folder.

GetEntryId ( string userEssdn ) : byte[]

Get EntryId by user ESSDN.

GetPermissionDataArrayForAdd ( string userEssdn, uint rights ) : PermissionData[]

Set the PermissionData Array for adding by the permissionUserName and permissionRight

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

AddPermission() защищенный Метод

Add a permission for a user to the permission list of the specified folder.
protected AddPermission ( string userEssdn, uint memberRights, uint folderHandle ) : void
userEssdn string UserDN used to connect server.
memberRights uint The permission value.
folderHandle uint The specified folder object handle.
Результат void

AddRecipients() защищенный Метод

Add recipients to specific message.
protected AddRecipients ( List recipientRows, uint messageHandle, PropertyTag propertyTag ) : void
recipientRows List The list of ModifyRecipientRow.
messageHandle uint The Server object handle of Message.
propertyTag Microsoft.Protocols.TestSuites.Common.PropertyTag The properties of Recipient
Результат void

AddRecipients() защищенный Метод

Add recipients to specific message.
protected AddRecipients ( List recipientRows, uint messageHandle, PropertyTag propertyTag, RopModifyRecipientsResponse &modifyRecipientsResponse ) : void
recipientRows List The list of ModifyRecipientRow.
messageHandle uint The Server object handle of Message.
propertyTag Microsoft.Protocols.TestSuites.Common.PropertyTag The properties of Recipient
modifyRecipientsResponse RopModifyRecipientsResponse The response of calling RopModifyRecipients.
Результат void

CheckMapiHttpIsSupported() защищенный Метод

Check whether support MS-OXCMAPIHTTP transport.
protected CheckMapiHttpIsSupported ( ) : void
Результат void

ConnectToServer() защищенный Метод

Connect to the server for RPC calling.
protected ConnectToServer ( ConnectionType connectionType ) : void
connectionType ConnectionType The type of connection
Результат void

CreateAttachment() защищенный Метод

Create an attachment of the given message.
protected CreateAttachment ( uint objectHandle, RopCreateAttachmentResponse &createAttachmentResponse, uint &attachmentId ) : uint
objectHandle uint A Server object handle.
createAttachmentResponse Microsoft.Protocols.TestSuites.Common.RopCreateAttachmentResponse The RopCreateAttachmentResponse value.
attachmentId uint The created attachment ID.
Результат uint

CreateMessageTaggedPropertyValueArrays() защищенный Метод

Create an array of TaggedPropertyValue for message.
protected CreateMessageTaggedPropertyValueArrays ( int &size, PidTagAttachMethodFlags valueOfPidTagAttachMethodFlags ) : Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[]
size int The size of TaggedPropertyValue array.
valueOfPidTagAttachMethodFlags PidTagAttachMethodFlags Flags of PidTagAttachMethod property.
Результат Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[]

CreateModifyRecipientRow() защищенный Метод

Create Recipient Array
protected CreateModifyRecipientRow ( string name, uint rowId ) : ModifyRecipientRow
name string Recipient name value
rowId uint RowId value
Результат ModifyRecipientRow

CreateModifyRecipientRow() защищенный Метод

Create Recipient Array
protected CreateModifyRecipientRow ( string name, uint rowId, RecipientType recipientType ) : ModifyRecipientRow
name string Recipient name value
rowId uint RowId value
recipientType RecipientType Recipient type value
Результат ModifyRecipientRow

CreateRecipientColumns() защищенный Метод

Create RecipientColumns
protected CreateRecipientColumns ( string name ) : PropertyRow
name string Recipient name
Результат Microsoft.Protocols.TestSuites.Common.PropertyRow

CreateRecipientColumns() защищенный Метод

Create RecipientColumns
protected CreateRecipientColumns ( ) : Microsoft.Protocols.TestSuites.Common.PropertyTag[]
Результат Microsoft.Protocols.TestSuites.Common.PropertyTag[]

CreateSubFolder() защищенный Метод

Create a subfolder under specified folder.
protected CreateSubFolder ( uint parentFolderHandle, ulong &subFolderId ) : uint
parentFolderHandle uint The specified parent folder handle.
subFolderId ulong Output the subfolder Id.
Результат uint

CreateSubFolder() защищенный Метод

Create a subfolder under specific folder.
protected CreateSubFolder ( uint parentFolderHandle ) : ulong
parentFolderHandle uint The Server object handle of parent folder.
Результат ulong

CreatedMessage() защищенный Метод

Get Created Message Handle
protected CreatedMessage ( ulong folderId, uint logonHandle ) : uint
folderId ulong The folder Id be used to create message
logonHandle uint The RopLogon object handle
Результат uint

CreatedMessage() защищенный Метод

Get Created Message Handle
protected CreatedMessage ( ulong folderId, uint logonHandle, RopCreateMessageResponse &createMessageResponse ) : uint
folderId ulong The folder Id be used to create message
logonHandle uint The RopLogon object handle
createMessageResponse RopCreateMessageResponse The response of calling RopCreateMessage
Результат uint

GetContentTableSuccess() защищенный Метод

Get the content table of specific folder.
protected GetContentTableSuccess ( uint objHandle ) : RopGetContentsTableResponse
objHandle uint The handle of specific folder.
Результат RopGetContentsTableResponse

GetLongTermIdFormID() защищенный Метод

Get the LongTermId form specified object ID.
protected GetLongTermIdFormID ( ulong objectId, uint logonHandle ) : LongTermId
objectId ulong The specified object ID.
logonHandle uint The logon handle.
Результат LongTermId

GetObjectIdFormLongTermID() защищенный Метод

Get the object ID form specified LongTermId.
protected GetObjectIdFormLongTermID ( LongTermId longTermID, uint logonHandle ) : ulong
longTermID LongTermId The specified LongTermID.
logonHandle uint The logon handle.
Результат ulong

GetSpecificPropertiesOfMessage() защищенный Метод

Get value of specific properties in Message object.
protected GetSpecificPropertiesOfMessage ( ulong folderId, ulong messageId, uint objectHandle, List propertyList ) : List
folderId ulong The folder ID.
messageId ulong The message handle.
objectHandle uint The object handle.
propertyList List The specific properties list.
Результат List

GetSpecificPropertiesOfMessage() защищенный Метод

Get value of specific properties in Message object.
protected GetSpecificPropertiesOfMessage ( uint messageHandle, List propertyList ) : RopGetPropertiesSpecificResponse
messageHandle uint The message handle.
propertyList List The specific properties list.
Результат RopGetPropertiesSpecificResponse

Logon() защищенный Метод

Call RopLogon to establish a logon session between the client and the server.
protected Logon ( LogonType logonType, uint &objHandle ) : RopLogonResponse
logonType LogonType LogonType value
objHandle uint Unsigned integer value
Результат RopLogonResponse

OpenSpecificFolder() защищенный Метод

Get Opened Folder Handle
protected OpenSpecificFolder ( ulong folderId, uint logonHandle ) : uint
folderId ulong The folder id be used to open folder
logonHandle uint The RopLogon handle
Результат uint

OpenSpecificMessage() защищенный Метод

Open a specific message.
protected OpenSpecificMessage ( ulong folderId, ulong messageId, uint objectHandle, MessageOpenModeFlags openFlags ) : uint
folderId ulong The folder Id of specific folder that contains specific message.
messageId ulong The message id of specific message.
objectHandle uint A Server object handle.
openFlags MessageOpenModeFlags The OpenModeFlags value.
Результат uint

OpenSpecificMessage() защищенный Метод

Open a specific message.
protected OpenSpecificMessage ( ulong folderId, ulong messageId, uint objectHandle, MessageOpenModeFlags openFlags, RopOpenMessageResponse &openMessageResponse ) : uint
folderId ulong The folder Id of specific folder that contains specific message.
messageId ulong The message id of specific message.
objectHandle uint A Server object handle.
openFlags MessageOpenModeFlags The OpenModeFlags value.
openMessageResponse RopOpenMessageResponse The response of RopOpenMessage.
Результат uint

QueryRowsSuccess() защищенный Метод

Query the rows of specific table.
protected QueryRowsSuccess ( uint objHandle ) : RopQueryRowsResponse
objHandle uint The handle of specific table.
Результат RopQueryRowsResponse

ReleaseRop() защищенный Метод

Release resources.
protected ReleaseRop ( uint handle ) : void
handle uint Unsigned integer value indicates the Server object Handle
Результат void

SaveAttachment() защищенный Метод

Save the attachment.
protected SaveAttachment ( uint objectHandle, RopSaveChangesAttachmentResponse &saveChangesAttachmentReponse ) : void
objectHandle uint A Server object handle.
saveChangesAttachmentReponse RopSaveChangesAttachmentResponse The RopSaveChangesAttachmentResponse value.
Результат void

SaveMessage() защищенный Метод

Save Message
protected SaveMessage ( uint messagesHandle, byte saveFlags ) : RopSaveChangesMessageResponse
messagesHandle uint An unsigned integer value indicates a Message object handle.
saveFlags byte A byte value indicates value of SaveFlags.
Результат RopSaveChangesMessageResponse

SetColumnsSuccess() защищенный Метод

Set the specified columns that want to be returned.
protected SetColumnsSuccess ( PropertyTag propertyTags, uint objHandle ) : void
propertyTags PropertyTag The specified columns.
objHandle uint The object handle.
Результат void

SetPropertiesForMessage() защищенный Метод

Set properties' value for a message
protected SetPropertiesForMessage ( uint messageHandle, List pts ) : void
messageHandle uint Unsigned integer value indicates a message object handle.
pts List PropertyObj list value
Результат void

SetPropertiesForMessage() защищенный Метод

Set properties' value for a message
protected SetPropertiesForMessage ( uint messageHandle, List pts, RopSetPropertiesResponse &rpmSetResponse ) : void
messageHandle uint Unsigned integer value indicates a message object handle.
pts List PropertyObj list value
rpmSetResponse RopSetPropertiesResponse The response of calling RopSetProperties.
Результат void

TestCleanup() защищенный Метод

Test cleanup method
protected TestCleanup ( ) : void
Результат void

TestInitialize() защищенный Метод

Test initialization
protected TestInitialize ( ) : void
Результат void

WaitEmailBeDelivered() защищенный Метод

Wait email be delivered to Inbox folder.
protected WaitEmailBeDelivered ( string title, ulong folderId, uint logonHandle, ulong &messageId ) : bool
title string The message subject of specified message
folderId ulong The specified folder ID.
logonHandle uint The logon handle.
messageId ulong The value of message ID.
Результат bool

WaitEmailBeDelivered() защищенный Метод

Wait email be delivered to Inbox folder.
protected WaitEmailBeDelivered ( uint objectHandle, uint messageCountBeforeDelivery ) : bool
objectHandle uint The Server object handle of inbox folder.
messageCountBeforeDelivery uint The message count in inbox before this message be delivered
Результат bool

Описание свойств

insideObjHandle защищенное свойство

Object handle
protected uint insideObjHandle
Результат uint

isNotNeedCleanupPrivateMailbox защищенное свойство

The boolean value indicates that the case does not need cleanup.
protected bool isNotNeedCleanupPrivateMailbox
Результат bool

rawData защищенное свойство

rawData byte
protected byte[] rawData
Результат byte[]

response защищенное свойство

The response object
protected object response
Результат object

retryCount защищенное свойство

The retry count that is used by the test suite to find the message item after it sends out.
protected int retryCount
Результат int

waitTime защищенное свойство

The time internal (millisecond) that is used by the test suite to find the message item after it sends out.
protected int waitTime
Результат int