C# 클래스 Microsoft.Protocols.TestSuites.MS_WSSREST.MS_WSSRESTAdapter

Adapter class of MS-WSSREST.
상속: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_WSSRESTAdapter
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

BatchRequests() 공개 메소드

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

DeleteListItem() 공개 메소드

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

Initialize() 공개 메소드

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.
리턴 void

InsertListItem() 공개 메소드

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

RetrieveListItem() 공개 메소드

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

UpdateListItem() 공개 메소드

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