C# Class BloggingSystem.IntegrationTests.InMemoryHttpServer

Show file Open project: vladislav-karamfilov/TelerikAcademy Class Usage Examples

Public Methods

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

Private Methods

Method Description
AddHttpRoutes ( HttpRouteCollection routeCollection ) : void

Method Details

Get() public method

public Get ( string requestUrl, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
requestUrl string
headers string>.IDictionary
mediaType string
return System.Net.Http.HttpResponseMessage

InMemoryHttpServer() public method

public InMemoryHttpServer ( string baseUrl ) : System
baseUrl string
return System

InMemoryHttpServer() public method

public InMemoryHttpServer ( string baseUrl, IEnumerable routes ) : System
baseUrl string
routes IEnumerable
return System

Post() public method

public Post ( string requestUrl, object data, string>.IDictionary headers = null, string mediaType = "application/json" ) : HttpResponseMessage
requestUrl string
data object
headers string>.IDictionary
mediaType string
return System.Net.Http.HttpResponseMessage

Put() public method

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
return System.Net.Http.HttpResponseMessage