C# Class CtcApi.Testing.FakeHttpHelper

Provides functionality for injecting mock HTTP objects into standard .NET calls
This class is primarily intended to make it easier to write unit tests for code which makes external HTTP calls.
Show file Open project: BellevueCollege/CtcApi

Public Methods

Method Description
AssertExpectedHeaders ( ) : void

AssertRequestMethod ( string method ) : void

FakeHttpHelper ( string schema, string responseText ) : System

Private Methods

Method Description
FakeHttpHelper ( ) : System

Method Details

AssertExpectedHeaders() public method

public AssertExpectedHeaders ( ) : void
return void

AssertRequestMethod() public method

public AssertRequestMethod ( string method ) : void
method string
return void

FakeHttpHelper() public method

public FakeHttpHelper ( string schema, string responseText ) : System
schema string /// The URL schema to inject into the factory. URLs /// with the specified schema will be handled by this ///
responseText string
return System