Exemplo n.º 1
0
 public HttpServerTests(HttpServerMode mode)
 {
     _settings = new HttpServerSettings {Port = 1111, Mode = mode};
     _createClient = () => new WebClient
     {
         BaseAddress = string.Format("http://localhost:{0}", _settings.Port),
         Encoding = Encoding.UTF8
     };
 }
Exemplo n.º 2
0
 public HttpServerTests(HttpServerMode mode)
 {
     _settings = new HttpServerSettings {
         Port = 1111, Mode = mode
     };
     _createClient = () => new WebClient
     {
         BaseAddress = string.Format("http://localhost:{0}", _settings.Port),
         Encoding    = Encoding.UTF8
     };
 }