Exemplo n.º 1
0
Arquivo: Api.cs Projeto: mstru/Testing
 /// <summary>
 /// Spracováva žiadosť HTTP na vzdialenom HTTP serveri umiestnenom na poskytovanej bazovej adrese.
 /// </summary>
 /// <param name="baseAddress">Zakladna adresa, ktoru requesty pouziju.</param>
 /// <returns>Server builder to set specific HTTP requests.</returns>
 public IApiBuilder WorkingRemotely(string baseAddress)
 {
     return(new ApiTestBuilder(RemoteServer.CreateNewClient(baseAddress), disposeServer: true));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Processes HTTP request on the remote HTTP server located at the provided base address.
 /// </summary>
 /// <param name="baseAddress">Base address to use for the requests.</param>
 /// <returns>Server builder to set specific HTTP requests.</returns>
 public static IServerBuilder WorkingRemotely(string baseAddress, Action <HttpClientHandler> httpClientHandlerSetup)
 {
     return(new ServerTestBuilder(RemoteServer.CreateNewClient(baseAddress, httpClientHandlerSetup), disposeClient: true));
 }