C# Class Parse.Tests.FakeServer

A fake server for testing
Kinda hate this...bound to setup a real/fake testing server somewhere at some point
Inheritance: IDisposable
Afficher le fichier Open project: karlseguin/parse-dotnet

Méthodes publiques

Méthode Description
Dispose ( ) : void
FakeServer ( ) : System
OnInvoke ( System.Action callback ) : void
Stub ( ApiExpectation expectation ) : void

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
ExtractBody ( HttpListenerRequest request ) : string
FindExpectation ( HttpListenerContext context, string body ) : ApiExpectation
GetContext ( ) : HttpListenerContext
Listen ( ) : void
SendResponse ( HttpListenerContext context, string body, ApiExpectation expectation ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FakeServer() public méthode

public FakeServer ( ) : System
Résultat System

OnInvoke() public méthode

public OnInvoke ( System.Action callback ) : void
callback System.Action
Résultat void

Stub() public méthode

public Stub ( ApiExpectation expectation ) : void
expectation ApiExpectation
Résultat void