C# Class Microsoft.Protocols.TestSuites.SharedAdapter.MsfsshttpbSubRequestMapping

This class is used to maintain the sub request token for ms-fsshttpb.
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
Add ( int subRequestID, Type subRequestType, ITestSite site ) : void

This method is used to add a mapping between the sub request token and sub request type.

Clear ( ) : void

The method is used to clear all the mappings.

GetSubRequestType ( int subRequestID, ITestSite site ) : RequestTypes

This method is used to get the sub request type using the specified sub request token.

Method Details

Add() public static method

This method is used to add a mapping between the sub request token and sub request type.
public static Add ( int subRequestID, Type subRequestType, ITestSite site ) : void
subRequestID int Specify the sub request token.
subRequestType System.Type Specify the sub request type.
site ITestSite An object provides logging, assertions, and SUT adapters for test code onto its execution context.
return void

Clear() public static method

The method is used to clear all the mappings.
public static Clear ( ) : void
return void

GetSubRequestType() public static method

This method is used to get the sub request type using the specified sub request token.
public static GetSubRequestType ( int subRequestID, ITestSite site ) : RequestTypes
subRequestID int Specify the sub request token.
site ITestSite An object provides logging, assertions, and SUT adapters for test code onto its execution context.
return RequestTypes