C# Class Microsoft.Protocols.TestSuites.MS_WDVMODUU.S03_PropFindExtension

Inheritance: TestSuiteBase
Show file Open project: OfficeDev/Interop-TestSuites

Protected Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

ConstructHttpBody() protected static method

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
return string

ConstructHttpHeaders() protected static method

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
return System.Collections.Specialized.NameValueCollection

GetUtcFormatString() protected static method

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
return string