Class FakeAsyncUtil
Fake async web client for testing.
Calls either success or failure response handlers synchronously,
depending on whether error or successResponse is set.
Inheritance
FakeAsyncUtil
Namespace: Tests
Syntax
public class FakeAsyncUtil : IAsyncWebUtil
Constructors
FakeAsyncUtil()
Declaration
Fields
calledGet
Declaration
public static bool calledGet
Field Value
calledPost
Declaration
public static bool calledPost
Field Value
errorResponse
Declaration
public string errorResponse
Field Value
successResponse
Declaration
public string successResponse
Field Value
Methods
Get(String, Action<String>, Action<String>, Int32)
Declaration
public void Get(string url, Action<string> responseHandler, Action<string> errorHandler, int maxTimeoutInSeconds)
Parameters
Post(String, String, Action<String>, Action<String>, Int32)
Declaration
public void Post(string url, string body, Action<string> responseHandler, Action<string> errorHandler, int maxTimeoutInSeconds)
Parameters
Schedule(Action, Int32)
Declaration
public void Schedule(Action a, int delayInSeconds)
Parameters