Beamable SDK
All Classes Namespaces Functions Variables Properties Events
Public Member Functions | List of all members
Beamable.Platform.Tests.MockPlatformRoute< T > Class Template Reference
Inheritance diagram for Beamable.Platform.Tests.MockPlatformRoute< T >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Platform.Tests.MockPlatformRoute< T >:
Collaboration graph
[legend]

Public Member Functions

MockPlatformRoute< T > WithResponse (T response)
 
MockPlatformRoute< T > WithNoAuthHeader (bool use=false)
 
MockPlatformRoute< T > WithToken (string token)
 
MockPlatformRoute< T > WithBodyMatch< TRequest > (Func< TRequest, bool > matcher)
 
MockPlatformRoute< T > WithoutJsonField (string fieldName)
 
MockPlatformRoute< T > WithJsonFieldMatch (string jsonPath, Func< object, bool > matcher)
 
MockPlatformRoute< T > WithJsonFieldMatch (string jsonPath, object expectedValue)
 
override Promise< T1 > Invoke< T1 > (object body, bool includeAuth, IAccessToken token)
 
override bool MatchesRequest< T1 > (Method method, string uri, string token, object body, bool includeAuthHeader)
 
MockPlatformRoute< T > WithURIPrefix (string uriPrefix)
 
MockPlatformRoute< T > WithURIMatcher (Func< string, bool > matcher)
 
- Public Member Functions inherited from Beamable.Platform.Tests.MockPlatformRouteBase
abstract Promise< T > Invoke< T > (object body, bool includeAuth, IAccessToken token)
 
abstract bool MatchesRequest< T > (Method method, string uri, string token, object body, bool includeAuthHeader)
 

Additional Inherited Members

- Public Attributes inherited from Beamable.Platform.Tests.MockPlatformRouteBase
Method Method
 
string Uri
 
bool IncludeAuthHeader = true
 
string Token
 
bool Called => CallCount > 0
 
- Protected Attributes inherited from Beamable.Platform.Tests.MockPlatformRouteBase
object _response
 
- Properties inherited from Beamable.Platform.Tests.MockPlatformRouteBase
int CallCount [get, protected set]
 

The documentation for this class was generated from the following file: