コード例 #1
0
ファイル: Api.cs プロジェクト: 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));
 }
コード例 #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));
 }