C# Class Netsy.Test.Requests.MockFixedDataRequestGenerator

A mock RequestGenerator that returns the given data
Inheritance: IRequestGenerator
Afficher le fichier Open project: AnthonySteele/Netsy Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

StartRequest() public méthode

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
Résultat IAsyncResult