C# Class Microsoft.Protocols.TestSuites.MS_OXCSTOR.TestSuiteBase

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Afficher le fichier Open project: OfficeDev/Interop-TestSuites

Protected Properties

Свойство Type Description
domain string
essdnOfUser1 string
essdnOfUser2 string
getIdFromLongTermIdRequest Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdRequest
getIdFromLongTermIdResponse Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdResponse
getOwningServersRequest Microsoft.Protocols.TestSuites.Common.RopGetOwningServersRequest
getOwningServersResponse Microsoft.Protocols.TestSuites.Common.RopGetOwningServersResponse
getPerUserGuidRequest Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidRequest
getPerUserGuidResponse Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidResponse
getPerUserLongTermIdsRequest Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsRequest
getPerUserLongTermIdsResponse Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsResponse
getReceiveFolderRequest Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderRequest
getReceiveFolderResponse Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderResponse
getReceiveFolderTableRequest Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableRequest
getReceiveFolderTableResponse Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableResponse
getStoreStateRequest Microsoft.Protocols.TestSuites.Common.RopGetStoreStateRequest
getStoreStateResponse Microsoft.Protocols.TestSuites.Common.RopGetStoreStateResponse
insideObjHandle uint
logonRequestForPrivateMailBox Microsoft.Protocols.TestSuites.Common.RopLogonRequest
logonRequestForPublicFolder Microsoft.Protocols.TestSuites.Common.RopLogonRequest
logonResponse Microsoft.Protocols.TestSuites.Common.RopLogonResponse
longTermIdFromIdRequest Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdRequest
longTermIdFromIdResponse Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdResponse
messageMyClass string
messageMyClassToUpper string
outObjHandle uint
outputBuffer RopOutputBuffer
oxcstorAdapter IMS_OXCSTORAdapter
passwordOfUserOfMailboxOnServer1 string
passwordOfUserOfMailboxOnServer2 string
publicDatabaseName1 string
publicFolderIsGhostedRequest Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedRequest
publicFolderIsGhostedResponse Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedResponse
readPerUserInformationRequest Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationRequest
readPerUserInformationResponse Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationResponse
returnStatus bool
secondSUTExistOrNot bool
server1Name string
server2Name string
setReceiveFolderRequest RopSetReceiveFolderRequest
setReceiveFolderResponse RopSetReceiveFolderResponse
sutControlAdapter IMS_OXCSTORSUTControlAdapter
transportByMAPIOrNot bool
userDN string
userNameOfMailboxOnServer1 string
userNameOfMailboxOnServer2 string
writePerUserInformationRequest Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationRequest
writePerUserInformationResponse Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationResponse

Méthodes protégées

Méthode Description
BuildRopRequestMessage ( ) : void

Build some ROP request message

ByteArrayEquals ( byte byte1, byte byte2 ) : bool

Compare two Byte Arrays are equal or not

CheckTransportIsSupported ( ) : void

Check the transport is supported

CompareLogonResponse ( RopLogonResponse res1, RopLogonResponse res2 ) : bool

Compare the 2 RopLogonResponse objects.

CreateMessage ( ulong folderId, uint &targetMessageHandle ) : ulong

Create a message in public folder

CreateSearchFolder ( string folderName, uint &searchFolderHandle, ulong &searchFolderId ) : void

Create the active search folder in Inbox folder.

DeleteFolder ( ulong folderId, uint folderHandle ) : RopDeleteFolderResponse

Delete the specified folder

GenerateRandomValidIdset ( bool bigData = false ) : IDSETWithReplGuid

Generate a valid IDSETWithReplGuid structure

GetLongTermIdFromId ( ulong folderID ) : LongTermId

Get LongTermIdFromId

GetPropertyValue ( PropertyTag propTag, uint &responseFlag, byte &propertyValue ) : uint

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.

InitSUTVariable ( ) : void

Initialize some variable

OpenFolder ( string folderName, FolderType folderType, ulong parentFolderId, uint &openedFolderHandle ) : ulong

Open a folder in the specified folder. If the folder exists, return the folder ID, If not, create the folder first, and then return the folder ID.

RopRelease ( uint objectHandle ) : void

Release the folder handle

SetMessageAsRead ( ulong folderId, ulong messageId ) : void

Set a Message as Read

TestCleanup ( ) : void

Overrides TestClassBase's TestCleanup()

TestInitialize ( ) : void

Use TestInitialize to run code before running the test in the class

TryDeleteLogonProperty ( PropertyTag propTag ) : uint

This method is used to send the ROP of RopDeletePropertiesRequest to delete the specific property.

TryGetFlagLogonProperty ( PropertyTag propTag, uint &responseFlag ) : uint

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.

TryGetLogonProperty ( PropertyTag propTag ) : uint

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.

TryGetLogonPropertyValue ( PropertyTag propTag ) : byte[]

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property value.

TrySetLogonProperty ( TaggedPropertyValue propValue ) : uint

This method is used to send the ROP of RopSetPropertiesRequest to set the specific property.

VerifyDataIsIDSETStructure ( byte data ) : bool

Check the data in ReadPerUserInformation is valid or not

Method Details

BuildRopRequestMessage() protected méthode

Build some ROP request message
protected BuildRopRequestMessage ( ) : void
Résultat void

ByteArrayEquals() protected méthode

Compare two Byte Arrays are equal or not
protected ByteArrayEquals ( byte byte1, byte byte2 ) : bool
byte1 byte Byte array value1
byte2 byte Byte array value2
Résultat bool

CheckTransportIsSupported() protected méthode

Check the transport is supported
protected CheckTransportIsSupported ( ) : void
Résultat void

CompareLogonResponse() protected méthode

Compare the 2 RopLogonResponse objects.
protected CompareLogonResponse ( RopLogonResponse res1, RopLogonResponse res2 ) : bool
res1 Microsoft.Protocols.TestSuites.Common.RopLogonResponse The first RopLogonResponse object
res2 Microsoft.Protocols.TestSuites.Common.RopLogonResponse The second RopLogonResponse object
Résultat bool

CreateMessage() protected méthode

Create a message in public folder
protected CreateMessage ( ulong folderId, uint &targetMessageHandle ) : ulong
folderId ulong The ulong value
targetMessageHandle uint The uint value
Résultat ulong

CreateSearchFolder() protected méthode

Create the active search folder in Inbox folder.
protected CreateSearchFolder ( string folderName, uint &searchFolderHandle, ulong &searchFolderId ) : void
folderName string The search folder name
searchFolderHandle uint The search folder handle
searchFolderId ulong The created search folder ID
Résultat void

DeleteFolder() protected méthode

Delete the specified folder
protected DeleteFolder ( ulong folderId, uint folderHandle ) : RopDeleteFolderResponse
folderId ulong The folder specified by folderId to be deleted
folderHandle uint The folder handle
Résultat Microsoft.Protocols.TestSuites.Common.RopDeleteFolderResponse

GenerateRandomValidIdset() protected méthode

Generate a valid IDSETWithReplGuid structure
protected GenerateRandomValidIdset ( bool bigData = false ) : IDSETWithReplGuid
bigData bool The default value is false, if the value is true, this function will generate big data which length is greater than 4096
Résultat IDSETWithReplGuid

GetLongTermIdFromId() protected méthode

Get LongTermIdFromId
protected GetLongTermIdFromId ( ulong folderID ) : LongTermId
folderID ulong The folder ID
Résultat Microsoft.Protocols.TestSuites.Common.LongTermId

GetPropertyValue() protected méthode

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.
protected GetPropertyValue ( PropertyTag propTag, uint &responseFlag, byte &propertyValue ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
responseFlag uint When get the property successfully the responseFlag is 0, otherwise return the errorCode
propertyValue byte When get the property successfully the responseFlag is 0, the propertyValue is the property value, otherwise the propertyValue is 0
Résultat uint

InitSUTVariable() protected méthode

Initialize some variable
protected InitSUTVariable ( ) : void
Résultat void

OpenFolder() protected méthode

Open a folder in the specified folder. If the folder exists, return the folder ID, If not, create the folder first, and then return the folder ID.
protected OpenFolder ( string folderName, FolderType folderType, ulong parentFolderId, uint &openedFolderHandle ) : ulong
folderName string Folder name value
folderType Microsoft.Protocols.TestSuites.Common.FolderType The folder type: generic or search folder
parentFolderId ulong The parent folder ID
openedFolderHandle uint folder handle
Résultat ulong

RopRelease() protected méthode

Release the folder handle
protected RopRelease ( uint objectHandle ) : void
objectHandle uint The object handle to be released
Résultat void

SetMessageAsRead() protected méthode

Set a Message as Read
protected SetMessageAsRead ( ulong folderId, ulong messageId ) : void
folderId ulong The ulong value folder ID
messageId ulong The ulong value message ID
Résultat void

TestCleanup() protected méthode

Overrides TestClassBase's TestCleanup()
protected TestCleanup ( ) : void
Résultat void

TestInitialize() protected méthode

Use TestInitialize to run code before running the test in the class
protected TestInitialize ( ) : void
Résultat void

TryDeleteLogonProperty() protected méthode

This method is used to send the ROP of RopDeletePropertiesRequest to delete the specific property.
protected TryDeleteLogonProperty ( PropertyTag propTag ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
Résultat uint

TryGetFlagLogonProperty() protected méthode

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.
protected TryGetFlagLogonProperty ( PropertyTag propTag, uint &responseFlag ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
responseFlag uint The return value
Résultat uint

TryGetLogonProperty() protected méthode

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.
protected TryGetLogonProperty ( PropertyTag propTag ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
Résultat uint

TryGetLogonPropertyValue() protected méthode

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property value.
protected TryGetLogonPropertyValue ( PropertyTag propTag ) : byte[]
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
Résultat byte[]

TrySetLogonProperty() protected méthode

This method is used to send the ROP of RopSetPropertiesRequest to set the specific property.
protected TrySetLogonProperty ( TaggedPropertyValue propValue ) : uint
propValue Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue The new property value
Résultat uint

VerifyDataIsIDSETStructure() protected méthode

Check the data in ReadPerUserInformation is valid or not
protected VerifyDataIsIDSETStructure ( byte data ) : bool
data byte Byte array value
Résultat bool

Property Details

domain protected_oe property

The domain name
protected string domain
Résultat string

essdnOfUser1 protected_oe property

The essdn of the user whose mailbox is on server1
protected string essdnOfUser1
Résultat string

essdnOfUser2 protected_oe property

The essdn of the user whose mailbox is on server2
protected string essdnOfUser2
Résultat string

getIdFromLongTermIdRequest protected_oe property

RopIdFromLongTermId ROP request
protected RopIdFromLongTermIdRequest,Microsoft.Protocols.TestSuites.Common getIdFromLongTermIdRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdRequest

getIdFromLongTermIdResponse protected_oe property

RopIdFromLongTermId ROP response
protected RopIdFromLongTermIdResponse,Microsoft.Protocols.TestSuites.Common getIdFromLongTermIdResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdResponse

getOwningServersRequest protected_oe property

RopGetOwningServers ROP request
protected RopGetOwningServersRequest,Microsoft.Protocols.TestSuites.Common getOwningServersRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopGetOwningServersRequest

getOwningServersResponse protected_oe property

RopGetOwningServers ROP response
protected RopGetOwningServersResponse,Microsoft.Protocols.TestSuites.Common getOwningServersResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopGetOwningServersResponse

getPerUserGuidRequest protected_oe property

RopGetPerUserGuid ROP request
protected RopGetPerUserGuidRequest,Microsoft.Protocols.TestSuites.Common getPerUserGuidRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidRequest

getPerUserGuidResponse protected_oe property

RopGetPerUserGuid ROP Response
protected RopGetPerUserGuidResponse,Microsoft.Protocols.TestSuites.Common getPerUserGuidResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidResponse

getPerUserLongTermIdsRequest protected_oe property

RopGetPerUserLongTermIds ROP request
protected RopGetPerUserLongTermIdsRequest,Microsoft.Protocols.TestSuites.Common getPerUserLongTermIdsRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsRequest

getPerUserLongTermIdsResponse protected_oe property

RopGetPerUserLongTermIds ROP response
protected RopGetPerUserLongTermIdsResponse,Microsoft.Protocols.TestSuites.Common getPerUserLongTermIdsResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsResponse

getReceiveFolderRequest protected_oe property

RopGetReceiveFolder ROP request
protected RopGetReceiveFolderRequest,Microsoft.Protocols.TestSuites.Common getReceiveFolderRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderRequest

getReceiveFolderResponse protected_oe property

RopGetReceiveFolder ROP response
protected RopGetReceiveFolderResponse,Microsoft.Protocols.TestSuites.Common getReceiveFolderResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderResponse

getReceiveFolderTableRequest protected_oe property

RopGetReceiveFolderTable ROP request
protected RopGetReceiveFolderTableRequest,Microsoft.Protocols.TestSuites.Common getReceiveFolderTableRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableRequest

getReceiveFolderTableResponse protected_oe property

RopGetReceiveFolderTable ROP response
protected RopGetReceiveFolderTableResponse,Microsoft.Protocols.TestSuites.Common getReceiveFolderTableResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableResponse

getStoreStateRequest protected_oe property

RopGetStoreState ROP request
protected RopGetStoreStateRequest,Microsoft.Protocols.TestSuites.Common getStoreStateRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopGetStoreStateRequest

getStoreStateResponse protected_oe property

RopGetStoreState ROP response
protected RopGetStoreStateResponse,Microsoft.Protocols.TestSuites.Common getStoreStateResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopGetStoreStateResponse

insideObjHandle protected_oe property

Server object handle in the request
protected uint insideObjHandle
Résultat uint

logonRequestForPrivateMailBox protected_oe property

The logon request for a private mail box
protected RopLogonRequest,Microsoft.Protocols.TestSuites.Common logonRequestForPrivateMailBox
Résultat Microsoft.Protocols.TestSuites.Common.RopLogonRequest

logonRequestForPublicFolder protected_oe property

The logon request for public folder
protected RopLogonRequest,Microsoft.Protocols.TestSuites.Common logonRequestForPublicFolder
Résultat Microsoft.Protocols.TestSuites.Common.RopLogonRequest

logonResponse protected_oe property

Logon response
protected RopLogonResponse,Microsoft.Protocols.TestSuites.Common logonResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopLogonResponse

longTermIdFromIdRequest protected_oe property

RopLongTermIdFromId ROP request
protected RopLongTermIdFromIdRequest,Microsoft.Protocols.TestSuites.Common longTermIdFromIdRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdRequest

longTermIdFromIdResponse protected_oe property

RopLongTermIdFromId ROP response
protected RopLongTermIdFromIdResponse,Microsoft.Protocols.TestSuites.Common longTermIdFromIdResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdResponse

messageMyClass protected_oe property

MessageClass "My.Class"
protected string messageMyClass
Résultat string

messageMyClassToUpper protected_oe property

MessageClass "My.CLASS"
protected string messageMyClassToUpper
Résultat string

outObjHandle protected_oe property

Server object handle in the response.
protected uint outObjHandle
Résultat uint

outputBuffer protected_oe property

ROP output buffer
protected RopOutputBuffer outputBuffer
Résultat RopOutputBuffer

oxcstorAdapter protected_oe property

The instance of the server adapter
protected IMS_OXCSTORAdapter oxcstorAdapter
Résultat IMS_OXCSTORAdapter

passwordOfUserOfMailboxOnServer1 protected_oe property

The password of the user whose mailbox is on server1
protected string passwordOfUserOfMailboxOnServer1
Résultat string

passwordOfUserOfMailboxOnServer2 protected_oe property

The password of the user for MailboxOnServer2
protected string passwordOfUserOfMailboxOnServer2
Résultat string

publicDatabaseName1 protected_oe property

The identity of public database on the server1
protected string publicDatabaseName1
Résultat string

publicFolderIsGhostedRequest protected_oe property

RopPublicFolderIsGhosted ROP request
protected RopPublicFolderIsGhostedRequest,Microsoft.Protocols.TestSuites.Common publicFolderIsGhostedRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedRequest

publicFolderIsGhostedResponse protected_oe property

RopPublicFolderIsGhosted ROP response
protected RopPublicFolderIsGhostedResponse,Microsoft.Protocols.TestSuites.Common publicFolderIsGhostedResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedResponse

readPerUserInformationRequest protected_oe property

RopReadPerUserInformation ROP request
protected RopReadPerUserInformationRequest,Microsoft.Protocols.TestSuites.Common readPerUserInformationRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationRequest

readPerUserInformationResponse protected_oe property

RopReadPerUserInformation ROP response
protected RopReadPerUserInformationResponse,Microsoft.Protocols.TestSuites.Common readPerUserInformationResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationResponse

returnStatus protected_oe property

Return status
protected bool returnStatus
Résultat bool

secondSUTExistOrNot protected_oe property

A Boolean value indicates whether second system under test exists or not.
protected bool secondSUTExistOrNot
Résultat bool

server1Name protected_oe property

The name of server1
protected string server1Name
Résultat string

server2Name protected_oe property

The name of server2
protected string server2Name
Résultat string

setReceiveFolderRequest protected_oe property

RopSetReceiveFolder ROP request
protected RopSetReceiveFolderRequest setReceiveFolderRequest
Résultat RopSetReceiveFolderRequest

setReceiveFolderResponse protected_oe property

RopSetReceiveFolder ROP response
protected RopSetReceiveFolderResponse setReceiveFolderResponse
Résultat RopSetReceiveFolderResponse

sutControlAdapter protected_oe property

The instance of the SUT control adapter
protected IMS_OXCSTORSUTControlAdapter sutControlAdapter
Résultat IMS_OXCSTORSUTControlAdapter

transportByMAPIOrNot protected_oe property

A Boolean value indicates whether MAPI HTTP transport is set or not.
protected bool transportByMAPIOrNot
Résultat bool

userDN protected_oe property

The essdn of the user
protected string userDN
Résultat string

userNameOfMailboxOnServer1 protected_oe property

The user whose mailbox is on server1
protected string userNameOfMailboxOnServer1
Résultat string

userNameOfMailboxOnServer2 protected_oe property

The user whose mailbox is on server2
protected string userNameOfMailboxOnServer2
Résultat string

writePerUserInformationRequest protected_oe property

RopWritePerUserInformation ROP request
protected RopWritePerUserInformationRequest,Microsoft.Protocols.TestSuites.Common writePerUserInformationRequest
Résultat Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationRequest

writePerUserInformationResponse protected_oe property

RopWritePerUserInformation ROP response
protected RopWritePerUserInformationResponse,Microsoft.Protocols.TestSuites.Common writePerUserInformationResponse
Résultat Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationResponse