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
显示文件 Open project: karlseguin/parse-dotnet

Public Methods

Method Description
Dispose ( ) : void
FakeServer ( ) : System
OnInvoke ( System.Action callback ) : void
Stub ( ApiExpectation expectation ) : void

Private Methods

Method 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 method

public Dispose ( ) : void
return void

FakeServer() public method

public FakeServer ( ) : System
return System

OnInvoke() public method

public OnInvoke ( System.Action callback ) : void
callback System.Action
return void

Stub() public method

public Stub ( ApiExpectation expectation ) : void
expectation ApiExpectation
return void