C# Class Netsy.Test.Requests.MockFixedDataRequestGenerator

A mock RequestGenerator that returns the given data
Inheritance: IRequestGenerator
Exibir arquivo Open project: AnthonySteele/Netsy Class Usage Examples

Public Methods

Method Description
MockFixedDataRequestGenerator ( string resultData ) : System

Initializes a new instance of the MockFixedDataRequestGenerator class

StartRequest ( Uri uri, Action dataAction, Action errorAction ) : IAsyncResult

Start the request

Method Details

MockFixedDataRequestGenerator() public method

Initializes a new instance of the MockFixedDataRequestGenerator class
public MockFixedDataRequestGenerator ( string resultData ) : System
resultData string the data to return
return System

StartRequest() public method

Start the request
public StartRequest ( Uri uri, Action dataAction, Action errorAction ) : IAsyncResult
uri System.Uri the request uri
dataAction Action the action to execute if data is returned
errorAction Action the action to execute if an error is returned
return IAsyncResult