public void CanSetCustomFriendlyHtmlPage(string html, string expectedResult = null) { expectedResult = expectedResult ?? html; // Handle the null case which reverts to default html using (var octopus = new HalibutRuntime(services, Certificates.Octopus)) { octopus.SetFriendlyHtmlPageContent(html); var listenPort = octopus.Listen(); var result = DownloadStringIgnoringCertificateValidation("https://localhost:" + listenPort); result.Should().Be(expectedResult); } }
public void CanSetCustomFriendlyHtmlPage(string html, string expectedResult = null) { expectedResult = expectedResult ?? html; // Handle the null case which reverts to default html using (var octopus = new HalibutRuntime(services, Certificates.Octopus)) { octopus.SetFriendlyHtmlPageContent(html); var listenPort = octopus.Listen(); var result = DownloadStringIgnoringCertificateValidation("https://localhost:" + listenPort); Assert.That(result, Is.EqualTo(expectedResult)); } }