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.
Afficher le fichier Open project: BellevueCollege/CtcApi

Méthodes publiques

Méthode Description
AssertExpectedHeaders ( ) : void

AssertRequestMethod ( string method ) : void

FakeHttpHelper ( string schema, string responseText ) : System

Private Methods

Méthode Description
FakeHttpHelper ( ) : System

Method Details

AssertExpectedHeaders() public méthode

public AssertExpectedHeaders ( ) : void
Résultat void

AssertRequestMethod() public méthode

public AssertRequestMethod ( string method ) : void
method string
Résultat void

FakeHttpHelper() public méthode

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