C# Класс Microsoft.Protocols.TestSuites.MS_WDVMODUU.S03_PropFindExtension

Наследование: TestSuiteBase
Показать файл Открыть проект

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

Метод Описание
ConstructHttpBody ( string timeStamp ) : string

Construct the HTTP XML Body that is used in HTTP PROPFIND method request, the HTTP XML body includes Repl:repl Element Collection and Repl:collblob Element, the value of Repl:collblob Element is the time stamp in the input parameter "timeStamp".

ConstructHttpHeaders ( string depthValue ) : NameValueCollection

Construct the HTTP Headers and values that is used in HTTP PROPFIND method request, set the value of "Depth" header as the input parameter "depthValue".

GetUtcFormatString ( System.DateTime dateTime ) : string

Construct a string that conforms to the [ISO-8601] standard based on the value of input date time object. Such as: 1969-01-01T12:00:00Z

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

Метод Описание
ClassCleanup ( ) : void
ClassInitialize ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext ) : void
FindSpecialResource ( ArrayList resourceList, string specialResourceUri ) : bool

Try to find the special resource in the resource list.

GetValidResourceUnderMultistatusElement ( XmlDocument xmlMultistatus ) : ArrayList

This method is used to get the valid resource under the "DAV:multistatus" element collection in the HTTP body of response, and record these valid resource in the "resourceList". A valid resource must include following two elements with none-empty value. DAV:href DAV:status And a valid resource can also include the element DAV:getlastmodified.

MSWDVMODUU_S03_TC01_PropFindExtension_Resource ( ) : void
MSWDVMODUU_S03_TC02_PropFindExtension_Resource_5Minutes ( ) : void
MSWDVMODUU_S03_TC03_PropFindExtension_Resource_Depth ( ) : void
MSWDVMODUU_S03_TC04_PropFindExtension_Resource_Descendant ( ) : void
MSWDVMODUU_S03_TC05_PropFindExtension_Repl ( ) : void
PutNewFileIntoServer ( string destinationUri, string filePath ) : bool

Call HTTP PUT method to upload a file into the server.

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

ConstructHttpBody() защищенный статический Метод

Construct the HTTP XML Body that is used in HTTP PROPFIND method request, the HTTP XML body includes Repl:repl Element Collection and Repl:collblob Element, the value of Repl:collblob Element is the time stamp in the input parameter "timeStamp".
protected static ConstructHttpBody ( string timeStamp ) : string
timeStamp string The time stamp that is used in the HTTP body
Результат string

ConstructHttpHeaders() защищенный статический Метод

Construct the HTTP Headers and values that is used in HTTP PROPFIND method request, set the value of "Depth" header as the input parameter "depthValue".
protected static ConstructHttpHeaders ( string depthValue ) : NameValueCollection
depthValue string The value of depth header
Результат System.Collections.Specialized.NameValueCollection

GetUtcFormatString() защищенный статический Метод

Construct a string that conforms to the [ISO-8601] standard based on the value of input date time object. Such as: 1969-01-01T12:00:00Z
protected static GetUtcFormatString ( System.DateTime dateTime ) : string
dateTime System.DateTime The object that includes the date time information
Результат string