C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
AssertExpectedHeaders ( ) : void

AssertRequestMethod ( string method ) : void

FakeHttpHelper ( string schema, string responseText ) : System

Приватные методы

Метод Описание
FakeHttpHelper ( ) : System

Описание методов

AssertExpectedHeaders() публичный Метод

public AssertExpectedHeaders ( ) : void
Результат void

AssertRequestMethod() публичный Метод

public AssertRequestMethod ( string method ) : void
method string
Результат void

FakeHttpHelper() публичный Метод

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
Результат System