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

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Protected Methods

Method Description
DeleteListItems ( string listName ) : void

Delete all list items in the special list.

GenerateContent ( string>.Dictionary properties ) : string

Generate the http request body.

GetPropertiesOfEntityType ( XmlNodeList xnl, string entityTypeName ) : List

Get properties from entity type.

InsertListItems ( string listName, int insertNumber ) : void

Insert multiple list items to list.

IsExistEntityType ( XmlNodeList xnl, string entityTypeName ) : bool

Check whether the special entity type exist in the metadata.

Private Methods

Method Description
TestCaseInitialize ( ) : void

Method Details

DeleteListItems() protected method

Delete all list items in the special list.
protected DeleteListItems ( string listName ) : void
listName string The list name.
return void

GenerateContent() protected method

Generate the http request body.
protected GenerateContent ( string>.Dictionary properties ) : string
properties string>.Dictionary The dictionary that contains field name and field value.
return string

GetPropertiesOfEntityType() protected method

Get properties from entity type.
protected GetPropertiesOfEntityType ( XmlNodeList xnl, string entityTypeName ) : List
xnl System.Xml.XmlNodeList The metadata from server.
entityTypeName string The entity type name.
return List

InsertListItems() protected method

Insert multiple list items to list.
protected InsertListItems ( string listName, int insertNumber ) : void
listName string The list name.
insertNumber int The number of inserted list items.
return void

IsExistEntityType() protected method

Check whether the special entity type exist in the metadata.
protected IsExistEntityType ( XmlNodeList xnl, string entityTypeName ) : bool
xnl System.Xml.XmlNodeList The metadata from server.
entityTypeName string The entity type name.
return bool