C# Class BloggingSystem.IntegrationTests.InMemoryHttpServer

Afficher le fichier Open project: vladislav-karamfilov/TelerikAcademy Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
AddHttpRoutes ( HttpRouteCollection routeCollection ) : void

Method Details

Get() public méthode

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

InMemoryHttpServer() public méthode

public InMemoryHttpServer ( string baseUrl ) : System
baseUrl string
Résultat System

InMemoryHttpServer() public méthode

public InMemoryHttpServer ( string baseUrl, IEnumerable routes ) : System
baseUrl string
routes IEnumerable
Résultat System

Post() public méthode

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

Put() public méthode

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
Résultat System.Net.Http.HttpResponseMessage