C# Класс BloggingSystem.IntegrationTests.InMemoryHttpServer

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Get ( string requestUrl, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
InMemoryHttpServer ( string baseUrl ) : System
InMemoryHttpServer ( string baseUrl, IEnumerable routes ) : System
Post ( string requestUrl, object data, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
Put ( string requestUrl, object data = null, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage

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

Метод Описание
AddHttpRoutes ( HttpRouteCollection routeCollection ) : void

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

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

public Get ( string requestUrl, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
requestUrl string
headers string>.IDictionary
mediaType string
Результат System.Net.Http.HttpResponseMessage

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

public InMemoryHttpServer ( string baseUrl ) : System
baseUrl string
Результат System

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

public InMemoryHttpServer ( string baseUrl, IEnumerable routes ) : System
baseUrl string
routes IEnumerable
Результат System

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

public Post ( string requestUrl, object data, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
requestUrl string
data object
headers string>.IDictionary
mediaType string
Результат System.Net.Http.HttpResponseMessage

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

public Put ( string requestUrl, object data = null, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
requestUrl string
data object
headers string>.IDictionary
mediaType string
Результат System.Net.Http.HttpResponseMessage