public DotNetCoreHostTests() { var options = new DotNetCoreHostOptions { CsProjectPath = TestSutUrls.ApiProjectPath, Port = Port }; _host = new DotNetCoreHost(options); _client = new HttpClient(); }
public static void StartSutHost() { var options = new DotNetCoreHostOptions() { //TODO: Fix This O_o CsProjectPath = @"D:\Sources\TDD - Assasins Creed\Session 08\FlightSchedule\FlightSchedule.RestApi", Port = 5000, }; _host = new DotNetCoreHost(options); _host.Start(); }
public void should_set_baseUrl_based_on_given_port() { const int port = 5000; const string expectedBaseUrl = "http://localhost:5000"; var options = new DotNetCoreHostOptions { Port = port }; var host = new DotNetCoreHost(options); Check.That(host.BaseUrl).IsEqualTo(expectedBaseUrl); }