Add property 'IsStartedWithAdminInterface' to 'IWireMockServer' (#931)

* Add property 'IsStartedWithAdminInterface' to 'IWireMockServer'

* update tests

* .
This commit is contained in:
Stef Heyenrath authored and GitHub committed 2023-05-06 13:12:00 +02:00
1 parent ccd8026884
commit d29f3e81f3
3 files changed
+36 -1

No files matched your search

@@ -34,6 +34,32 @@ public partial class WireMockServerTests
_testOutputHelper = testOutputHelper;
}
[Fact]
public void WireMockServer_Start()
{
// Act
var server = WireMockServer.Start();
// Assert
server.IsStarted.Should().BeTrue();
server.IsStartedWithAdminInterface.Should().BeFalse();
server.Stop();
}
[Fact]
public void WireMockServer_StartWithAdminInterface()
{
// Act
var server = WireMockServer.StartWithAdminInterface();
// Assert
server.IsStarted.Should().BeTrue();
server.IsStartedWithAdminInterface.Should().BeTrue();
server.Stop();
}
[Fact]
public async Task WireMockServer_Should_Reset_LogEntries()
{