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

Adapter class of MS-WSSREST.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_WSSRESTAdapter
Exibir arquivo Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
BatchRequests ( List requests ) : string

Package many requests(insert,update or delete request) in one batch request.

DeleteListItem ( Request request ) : bool

Delete a special list item.

Initialize ( ITestSite testSite ) : void

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.

InsertListItem ( Request request ) : Entry

Insert a list item.

RetrieveListItem ( Request request ) : object

Retrieve list item from server.

UpdateListItem ( Request request ) : string

Update a list item.

Private Methods

Method Description
CaptureTransportRelatedRequirements ( ) : void

Capture underlying transport protocol related requirements.

CheckEntitySet ( string entitySetName, XmlDocument csdlMetadata ) : bool

Check whether the specified EntitySet exist in the metadata.

CheckProperty ( XmlDocument doc, string propertyName ) : bool

Check whether the specified property contained in the response.

CheckPropertyType ( string fieldName, string propertyType, XmlDocument csdlMetadata ) : bool

Check whether the type of the specified property equals to the specified property type.

IsContainsIdProperty ( XmlNode node ) : bool

Check whether the special xml node contains an id property.

ValidateAndCaptureSchemaValidation ( ) : void

Validate the requirement by schema validation.

ValidateRetrieveCSDLDocument ( XmlDocument csdlDocument ) : void

To catch Adapter requirements of RetrieveCSDLDocument operation.

Method Details

BatchRequests() public method

Package many requests(insert,update or delete request) in one batch request.
public BatchRequests ( List requests ) : string
requests List The multi requests.
return string

DeleteListItem() public method

Delete a special list item.
public DeleteListItem ( Request request ) : bool
request Request The special list item.
return bool

Initialize() public method

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite Transfer ITestSite into adapter, make adapter can use ITestSite's function.
return void

InsertListItem() public method

Insert a list item.
public InsertListItem ( Request request ) : Entry
request Request The content of the list item that be inserted.
return Entry

RetrieveListItem() public method

Retrieve list item from server.
public RetrieveListItem ( Request request ) : object
request Request The retrieve condition.
return object

UpdateListItem() public method

Update a list item.
public UpdateListItem ( Request request ) : string
request Request The content of the list item that be updated.
return string