mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-26 11:21:51 +01:00
FluentMockServer_ReadStaticMappings
This commit is contained in:
@@ -71,7 +71,10 @@ namespace WireMock.Net.Tests
|
|||||||
[Test]
|
[Test]
|
||||||
public void FluentMockServer_ReadStaticMappings()
|
public void FluentMockServer_ReadStaticMappings()
|
||||||
{
|
{
|
||||||
_server = FluentMockServer.Start(new FluentMockServerSettings { ReadStaticMappings = true });
|
_server = FluentMockServer.Start();
|
||||||
|
|
||||||
|
string folder = Path.Combine(GetCurrentFolder(), "__admin", "mappings");
|
||||||
|
_server.ReadStaticMappings(folder);
|
||||||
|
|
||||||
var mappings = _server.Mappings.ToArray();
|
var mappings = _server.Mappings.ToArray();
|
||||||
Check.That(mappings).HasSize(2);
|
Check.That(mappings).HasSize(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user