C# Class Microsoft.Protocols.TestSuites.MS_WOPI.TokenAndRequestUrlHelper

This class is used to get the WOPI resource URL
Inheritance: HelperBase
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
GetSubResourceUrl ( string wopiRootResourceUrl, WOPISubResourceUrlType subResourceUrlType ) : string

A method is used to get folder children's level URL.

GetTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string

A method is used to get token value.

InitializeHelper ( IMS_WOPIManagedCodeSUTControlAdapter managedCodeSutConrollerAdapterInstance, ITestSite testSiteInstance ) : void

A method is used to initialize the TokenAndRequestUrlHelper helper.

Protected Methods

Method Description
GetWOPISrcAndTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string>.Dictionary

A method is used to get the WOPIsrc value and the token value.

Private Methods

Method Description
TokenAndRequestUrlHelper ( ) : System

Prevents a default instance of the TokenAndRequestUrlHelper class from being created

Method Details

GetSubResourceUrl() public static method

A method is used to get folder children's level URL.
public static GetSubResourceUrl ( string wopiRootResourceUrl, WOPISubResourceUrlType subResourceUrlType ) : string
wopiRootResourceUrl string A parameter represents the WOPI resource URL for the folder level.
subResourceUrlType WOPISubResourceUrlType A parameter represents the WOPI sub resource URL for the folder level.
return string

GetTokenValueFromWOPIResourceUrl() public static method

A method is used to get token value.
public static GetTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string
wopiResourceUrl string A parameter represents the WOPI resource URL, which is contain token information.
return string

GetWOPISrcAndTokenValueFromWOPIResourceUrl() protected static method

A method is used to get the WOPIsrc value and the token value.
protected static GetWOPISrcAndTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string>.Dictionary
wopiResourceUrl string A parameter represents the WOPI resource URL
return string>.Dictionary

InitializeHelper() public static method

A method is used to initialize the TokenAndRequestUrlHelper helper.
public static InitializeHelper ( IMS_WOPIManagedCodeSUTControlAdapter managedCodeSutConrollerAdapterInstance, ITestSite testSiteInstance ) : void
managedCodeSutConrollerAdapterInstance IMS_WOPIManagedCodeSUTControlAdapter A parameter represents the IMS_WOPISUTManageCodeControlAdapter type instance, it is used to get WOPI root resource URL.
testSiteInstance ITestSite A parameter represents an ITestSite instance which is used to get test suite context.
return void