Add WireMock.org RestClient (#631)

* wip...

* x

* .

* .

* .

* r

* 1.4.21-preview-02

* 1.4.21-preview-03

* .

* usings

* wip

* .

* ut

* .

* .

* .

* tests

* .

* comments

* readme
This commit is contained in:
Stef Heyenrath
2021-09-16 14:35:08 +02:00
committed by GitHub
parent fd28ebdffa
commit cb66c04199
34 changed files with 7553 additions and 180 deletions

View File

@@ -0,0 +1,31 @@
using System.IO;
using System.Linq;
using FluentAssertions;
using WireMock.Server;
using Xunit;
namespace WireMock.Net.Tests
{
public class WireMockServerImportWireMockOrgTests
{
// For for AppVeyor + OpenCover
private string GetCurrentFolder()
{
return Directory.GetCurrentDirectory();
}
[Fact]
public void WireMockServer_Admin_ReadStaticWireMockOrgMappingAndAddOrUpdate()
{
var server = WireMockServer.Start();
string path = Path.Combine(GetCurrentFolder(), "__admin", "mappings.org", "mapping1.json");
server.ReadStaticWireMockOrgMappingAndAddOrUpdate(path);
var mappings = server.Mappings.ToArray();
mappings.Should().HaveCount(1);
server.Stop();
}
}
}