private AssemblyInitialize()
 {
     this.WsHostname = WebServiceHost.GetBaseAddress();
     this.host       = new WebHostBuilder()
                       .UseUrls(this.WsHostname)
                       .UseKestrel()
                       .UseIISIntegration()
                       .UseStartup <Startup>()
                       .Build();
     this.host.Start();
 }
        public void TheServiceIsHealthyViaHttpServer()
        {
            // Arrange
            var address = WebServiceHost.GetBaseAddress();
            var host    = new WebHostBuilder()
                          .UseUrls(address)
                          .UseKestrel()
                          .UseStartup <Startup>()
                          .Build();

            host.Start();

            // Act
            var request = new HttpRequest(address + "/v1/status");

            request.AddHeader("X-Foo", "Bar");
            var response = this.httpClient.GetAsync(request).Result;

            // Assert
            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
        }