mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-28 03:07:01 +02:00
Updated WireMock as a standalone process (markdown)
@@ -25,7 +25,7 @@ class Program
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
// see source code for all the possible properties
|
// see source code for all the possible properties
|
||||||
var settings = new FluentMockServerSettings
|
var settings = new WireMockServerSettings
|
||||||
{
|
{
|
||||||
AllowPartialMapping=true,
|
AllowPartialMapping=true,
|
||||||
StartAdminInterface=true
|
StartAdminInterface=true
|
||||||
@@ -46,8 +46,8 @@ static void Main(string[] args)
|
|||||||
if (args.Length == 0 || !int.TryParse(args[0], out port))
|
if (args.Length == 0 || !int.TryParse(args[0], out port))
|
||||||
port = 8080;
|
port = 8080;
|
||||||
|
|
||||||
var server = FluentMockServer.Start(port);
|
var server = WireMockServer.Start(port);
|
||||||
Console.WriteLine("FluentMockServer running at {0}", string.Join(",", server.Ports));
|
Console.WriteLine("WireMockServer running at {0}", string.Join(",", server.Ports));
|
||||||
|
|
||||||
// Order of rules matters. First matching is taken.
|
// Order of rules matters. First matching is taken.
|
||||||
server
|
server
|
||||||
|
|||||||
Reference in New Issue
Block a user